Skip to content

Commit 6f1a82e

Browse files
authored
add gui port 3000 error message (#849)
Signed-off-by: LucaNicosia <[email protected]>
1 parent 01b3be5 commit 6f1a82e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

suzieq/gui/sq_gui.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ def gui_main(*args):
5353
'stlit' / 'suzieq-gui.py'
5454
thisprog = str(thisprog)
5555

56+
if userargs.port == '3000':
57+
# due to a streamlit issue, starting a server on port 3000 will cause
58+
# the SuzieQ gui to show an empty page
59+
# Issue: https://github.com/netenglabs/suzieq/issues/847
60+
print('Port 3000 is not allowed. Please choose a different port.\n\n'
61+
'For more details, check '
62+
'https://github.com/netenglabs/suzieq/issues/847')
63+
return
64+
5665
# validate the config file before starting the gui
5766
load_sq_config(config_file=userargs.config)
5867

0 commit comments

Comments
 (0)