Permalink
Browse files

Choose AirPort/Wi-Fi name

  • Loading branch information...
1 parent 788f2ad commit c9e17694322604e04e67398e4651a2ca5a360025 @nicksieger committed Apr 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sheepsafe/installer.rb
View
3 lib/sheepsafe/installer.rb
@@ -92,7 +92,8 @@ def setup_network_location
if agree "Next, I'll set up the SOCKS proxy in the \"Untrusted\" location for you. OK\? (yes/no)\n"
system "networksetup -switchtolocation Untrusted"
- system "networksetup -setsocksfirewallproxy AirPort localhost #{config.socks_port}"
+ wifi_service = `networksetup -listallnetworkservices`.lines.detect {|l| l[/(AirPort|Wi-Fi)/, 1] }
+ system "networksetup -setsocksfirewallproxy wifi_service localhost #{config.socks_port}"
end
end

0 comments on commit c9e1769

Please sign in to comment.