Fix missing hostname in /etc/issue
This commit is contained in:
parent
0ae3b2ad61
commit
b10f5f5abc
@ -215,7 +215,7 @@ class SpotterManager:
|
||||
host = subprocess.check_output(['/sbin/ip', 'route', 'get', '1']).split()[-1]
|
||||
# Show port number only when using the non-default HTTPS port
|
||||
if self.port != '443':
|
||||
host = ':{}'.format(self.port)
|
||||
host += ':{}'.format(self.port)
|
||||
# Rebuild the terminal banner
|
||||
with open(ISSUE_FILE, 'w') as f:
|
||||
f.write(ISSUE_TEMPLATE.format(host=host))
|
||||
|
Loading…
Reference in New Issue
Block a user