From 33ddb92543cbefb96bff2e7c79c0e5e298a301cb Mon Sep 17 00:00:00 2001 From: davidtgq Date: Fri, 3 Aug 2018 03:25:26 -0400 Subject: [PATCH] Don't print address when using sock --- vibora/server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vibora/server.py b/vibora/server.py index 933eb80..9db5db0 100644 --- a/vibora/server.py +++ b/vibora/server.py @@ -295,8 +295,10 @@ def run(self, host: str='127.0.0.1', port: int=5000, workers: int=None, debug: b wait_server_available(host, port) if startup_message: - cprint('# Vibora ({color_}' + __version__ + '{end_}) # http://' + str(host) + ':' + str(port), - custom=True) + message = '# Vibora ({color_}' + __version__ + '{end_}) ' + if not sock: + message += '# http://' + str(host) + ':' + str(port) + cprint(message, custom=True) self.running = True if block: