Revision 9a6eacb9 util/vapclient.py
b/util/vapclient.py | ||
---|---|---|
35 | 35 |
ctrl.connect(CTRL_SOCKET) |
36 | 36 |
ctrl.send(request) |
37 | 37 |
response = ctrl.recv(1024) |
38 |
if response == "OK": |
|
38 |
if response == "OK\n":
|
|
39 | 39 |
return True |
40 | 40 |
else: |
41 | 41 |
return False |
42 | 42 |
|
43 | 43 |
if __name__ == '__main__': |
44 |
request_forwarding(*sys.argv[1:]) |
|
44 |
if not request_forwarding(*sys.argv[1:]): |
|
45 |
sys.exit(1) |
Also available in: Unified diff