barnard-ui: fix hostname
This commit is contained in:
+1
-1
@@ -559,7 +559,7 @@ def connect():
|
||||
|
||||
if not config_has_nonempty_value("username"):
|
||||
user = os.environ.get("USER", "")
|
||||
host = os.environ.get("HOSTNAME", "")
|
||||
host = os.uname().nodename
|
||||
if user and host:
|
||||
username = "%s-%s" % (user, host)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user