Skip to content
Browse files

Listen from everyone.

  • Loading branch information...
1 parent 722db81 commit c811677a79ad97d8778e4449ea0085bf323f0e7e @gshakhn committed Apr 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/headless/vnc/vnc.rb
  2. +1 −1 spec/vnc_spec.rb
View
2 lib/headless/vnc/vnc.rb
@@ -23,7 +23,7 @@ def initialize(display, options = {})
def start
unless vnc_running?
- CliUtil.fork_process("#{CliUtil.path_to('x11vnc')} -display :#{@display} -N -nopw -viewonly -shared -forever -listen localhost", @pid_file_path, @log_file_path)
+ CliUtil.fork_process("#{CliUtil.path_to('x11vnc')} -display :#{@display} -N -nopw -viewonly -shared -forever", @pid_file_path, @log_file_path)
at_exit do
exit_status = $!.status if $!.is_a?(SystemExit)
stop
View
2 spec/vnc_spec.rb
@@ -18,7 +18,7 @@
describe "start" do
it "starts x11vnc" do
Headless::CliUtil.stub(:path_to, 'x11vnc').and_return('x11vnc')
- Headless::CliUtil.should_receive(:fork_process).with(/x11vnc -display :99 -N -nopw -viewonly -shared -forever -listen localhost/, "/tmp/.headless_vnc_99.pid", '/dev/null')
+ Headless::CliUtil.should_receive(:fork_process).with(/x11vnc -display :99 -N -nopw -viewonly -shared -forever/, "/tmp/.headless_vnc_99.pid", '/dev/null')
recorder = Headless::Vnc.new(99)
recorder.start

0 comments on commit c811677

Please sign in to comment.
Something went wrong with that request. Please try again.