diff options
author | Peter Åstrand (astrand) <astrand@cendio.se> | 2013-11-28 09:07:52 +0100 |
---|---|---|
committer | Peter Åstrand (astrand) <astrand@cendio.se> | 2013-11-28 09:07:52 +0100 |
commit | 3b802c08b7429e1696b9f2e17c3879407f1ec7b1 (patch) | |
tree | 0b9b9f592b805fe77414af3433213231de0f2c25 | |
parent | 972b30ddc222c9cfe3899f5eef679c85eacb085d (diff) | |
parent | 32b0567343aee7753b2b6be1bc1ee9a69657ba26 (diff) | |
download | websockify-3b802c08b7429e1696b9f2e17c3879407f1ec7b1.tar.gz |
Merge commit '32b0567343aee7753b2b6be1bc1ee9a69657ba26'
* commit '32b0567343aee7753b2b6be1bc1ee9a69657ba26':
Fix syntax errors in other/websockify.rb
-rwxr-xr-x | other/websockify.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/other/websockify.rb b/other/websockify.rb index bdc61f1..d6310f3 100755 --- a/other/websockify.rb +++ b/other/websockify.rb @@ -92,7 +92,7 @@ Traffic Legend: # Receive target data and queue for the client if ins && ins.include?(target) buf = target.recv(@@Buffer_size) - if buf.length == 0: + if buf.length == 0 raise EClose, "Target closed" end @@ -128,7 +128,7 @@ parser = OptionParser.new do |o| o.parse! end -if ARGV.length < 2: +if ARGV.length < 2 puts "Too few arguments" exit 2 end |