blob: 0f867da10d27cae33de10dd0f066557d60d733bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff -ruN kismet-2011-03-R2.orig/conf/kismet.conf.in kismet-2011-03-R2/conf/kismet.conf.in
--- kismet-2011-03-R2.orig/conf/kismet.conf.in 2012-05-22 21:33:23.371718460 -0500
+++ kismet-2011-03-R2/conf/kismet.conf.in 2012-05-22 21:43:08.641691490 -0500
@@ -7,7 +7,8 @@
version=2009-newcore
# Name of server (Purely for organizational purposes)
-servername=Kismet_2009
+# If commented out, defaults to host name of system
+#servername=Kismet_Server
# Prefix of where we log (as used in the logtemplate later)
# logprefix=/some/path/to/logs
diff -ruN kismet-2011-03-R2.orig/kismet_server.cc kismet-2011-03-R2/kismet_server.cc
--- kismet-2011-03-R2.orig/kismet_server.cc 2011-03-03 23:34:42.000000000 -0600
+++ kismet-2011-03-R2/kismet_server.cc 2012-05-22 21:42:31.319693185 -0500
@@ -897,7 +897,11 @@
}
if (conf->FetchOpt("servername") == "") {
- globalregistry->servername = "Kismet";
+ char hostname[64];
+ if (gethostname(hostname, 64) < 0)
+ globalregistry->servername = "Kismet";
+ else
+ globalregistry->servername = string(hostname);
} else {
globalregistry->servername = MungeToPrintable(conf->FetchOpt("servername"));
}
|