Explorar el Código

use hostname instead of fqdn

raylu hace 11 años
padre
commit
c041d9dfd8
Se han modificado 1 ficheros con 1 adiciones y 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: