Fix missing hostname in /etc/issue

This commit is contained in:
Disassembler 2018-05-05 21:23:29 +02:00
parent 0ae3b2ad61
commit b10f5f5abc
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -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))