Browse Source

use hostname instead of fqdn

raylu 11 năm trước cách đây
mục cha
commit
c041d9dfd8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: