summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordellsystem <ilostwaldo@gmail.com>2013-10-21 20:59:15 -0400
committerdellsystem <ilostwaldo@gmail.com>2013-10-21 20:59:16 -0400
commit82fe32912916884905d0577e34abf13ea7ff427b (patch)
tree00caadb0da40ce68b64e1232ca7875656a81cbca
parent0e5c3ecfda3b1506b41412052db75d84df2b4ae7 (diff)
downloadwebsockify-82fe32912916884905d0577e34abf13ea7ff427b.tar.gz
Fix syntax errors in other/websockify.rb
-rwxr-xr-xother/websockify.rb4
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