Merge pull request #103 from dellsystem/master
Fix syntax errors in other/websockify.rb
This commit is contained in:
commit
32b0567343
|
|
@ -92,7 +92,7 @@ Traffic Legend:
|
||||||
# Receive target data and queue for the client
|
# Receive target data and queue for the client
|
||||||
if ins && ins.include?(target)
|
if ins && ins.include?(target)
|
||||||
buf = target.recv(@@Buffer_size)
|
buf = target.recv(@@Buffer_size)
|
||||||
if buf.length == 0:
|
if buf.length == 0
|
||||||
raise EClose, "Target closed"
|
raise EClose, "Target closed"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -128,7 +128,7 @@ parser = OptionParser.new do |o|
|
||||||
o.parse!
|
o.parse!
|
||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.length < 2:
|
if ARGV.length < 2
|
||||||
puts "Too few arguments"
|
puts "Too few arguments"
|
||||||
exit 2
|
exit 2
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue