summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolly <directxman12+gh@gmail.com>2013-10-21 18:29:45 -0700
committerSolly <directxman12+gh@gmail.com>2013-10-21 18:29:45 -0700
commit32b0567343aee7753b2b6be1bc1ee9a69657ba26 (patch)
tree00caadb0da40ce68b64e1232ca7875656a81cbca
parent0e5c3ecfda3b1506b41412052db75d84df2b4ae7 (diff)
parent82fe32912916884905d0577e34abf13ea7ff427b (diff)
downloadwebsockify-32b0567343aee7753b2b6be1bc1ee9a69657ba26.tar.gz
Merge pull request #103 from dellsystem/master
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