|
|
@ -467,7 +467,7 @@ if __name__ == '__main__': |
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
|
|
|
host, port = args.balance.split(':') |
|
|
|
host, port = args.balance.split(':') |
|
|
|
try: |
|
|
|
try: |
|
|
|
sock.connect(host, port) |
|
|
|
sock.connect((host, int(port))) |
|
|
|
except ConnectionRefusedError: |
|
|
|
except ConnectionRefusedError: |
|
|
|
print('could not connect to balance server', file=sys.stderr) |
|
|
|
print('could not connect to balance server', file=sys.stderr) |
|
|
|
sys.exit(1) |
|
|
|
sys.exit(1) |
|
|
|