فهرست منبع

use hostname instead of fqdn

raylu 11 سال پیش
والد
کامیت
c041d9dfd8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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: