Skip to content

Commit 93f6045

Browse files
committed
preserve default ports if no input
fix honeynet#189
1 parent b08a1b4 commit 93f6045

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

beeswarm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = '0.4.10'
1+
version = '0.4.11'

beeswarm/server/server.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ def prepare_environment(work_dir, customize):
308308
zmq_command_port = 5713
309309
server_hostname = raw_input('IP or hostname of server: ')
310310
if customize:
311-
zmq_port = raw_input('TCP port for session data (default: 5712) : ')
312-
if zmq_port != '':
311+
zmq_port_input = raw_input('TCP port for session data (default: 5712) : ')
312+
if zmq_port_input != '':
313313
zmq_port = int(zmq_port)
314314

315-
zmq_command_port = raw_input('TCP port for drone commands(default: 5713) : ')
316-
if zmq_command_port != '':
315+
zmq_command_port_input = raw_input('TCP port for drone commands(default: 5713) : ')
316+
if zmq_command_port_input != '':
317317
zmq_command_port = int(zmq_port)
318318

319319
# tmp actor while initializing

0 commit comments

Comments
 (0)