Explorar o código

use hostname instead of fqdn

raylu %!s(int64=11) %!d(string=hai) anos
pai
achega
c041d9dfd8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/sysvitals_client

+ 1 - 1
client/sysvitals_client

@@ -75,7 +75,7 @@ def configure():
 
 	print 'checking existing servers'
 	servers = __query(group_id, 'servers', api_key)
-	our_hostname = socket.getfqdn()
+	our_hostname = socket.gethostname()
 	server_id = None
 	matches = 0
 	for server in servers: