Skip to content

Commit

Permalink
vnc localhost to 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever committed Nov 26, 2011
1 parent 68ba5b3 commit 6190f56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/net/vnc/vnc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/veewee/provider/kvm/box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion lib/veewee/provider/vmfusion/box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6190f56

Please sign in to comment.