Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vnc localhost to 127.0.0.1

  • Loading branch information...
commit 6190f56b669d2f225030fc1637b7483843b11a03 1 parent 68ba5b3
@jedi4ever authored
View
2  lib/net/vnc/vnc.rb
@@ -73,7 +73,7 @@ def KEY_MAP.[] key
attr_reader :server, :display, :options, :socket, :pointer
def initialize display=':0', options={}
- @server = 'localhost'
+ @server = '127.0.0.1'
if display =~ /^(.*)(:\d+)$/
@server, display = $1, $2
end
View
2  lib/veewee/provider/kvm/box.rb
@@ -31,7 +31,7 @@ def console_type(sequence,type_options={})
vnc_port=@connection.servers.all(:name => name).first.vnc_port
display_port=vnc_port.to_i - 5900
env.ui.confirm "Sending keystrokes to VNC port :#{display_port} - TCP port: #{vnc_port}"
- vnc_type(sequence,"localhost",display_port)
+ vnc_type(sequence,"127.0.0.1",display_port)
end
View
2  lib/veewee/provider/vmfusion/box.rb
@@ -112,7 +112,7 @@ def transfer_buildinfo(box,definition)
# Type on the console
def console_type(sequence,type_options={})
if vnc_enabled?
- vnc_type(sequence,"localhost",vnc_display_port)
+ vnc_type(sequence,"127.0.0.1",vnc_display_port)
else
raise Veewee::Error, "VNC is not enabled"
end
Please sign in to comment.
Something went wrong with that request. Please try again.