Skip to content

Commit

Permalink
More tweaks for proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Sep 2, 2011
1 parent 34b5df0 commit 432521c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install/lantern.install4j
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ Lantern requires your Google Account credentials to access the Internet. What yo
</object>
</void>
<void property="executionType">
<object class="com.install4j.runtime.beans.actions.misc.ExecutionType" field="ORIGINAL_USER" />
<object class="com.install4j.runtime.beans.actions.misc.ExecutionType" field="ADMIN" />
</void>
<void property="logArguments">
<boolean>true</boolean>
Expand Down
4 changes: 2 additions & 2 deletions install/osx/configureOsx.bash
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ log "Copied pac file!!"
log "Configuring network services"
while read s;
do
echo "Configuring network: $s"
log "Configuring network: $s"
sudo networksetup -setautoproxyurl "$s" file://localhost$HOME/.lantern/proxy.pac || log "Could not set auto proxy URL for $s"
sudo networksetup -setautoproxystate "$s" "on" || log "Could not turn auto proxy on for $s"
echo "Configured network: $s"
log "Configured network: $s"
done < <(networksetup -listallnetworkservices | tail +2)
log "Done configuring network services!!"

Expand Down
3 changes: 3 additions & 0 deletions proxy_off.pac
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function FindProxyForURL(url, host) {
return "DIRECT";
}
3 changes: 3 additions & 0 deletions proxy_on.pac
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function FindProxyForURL(url, host) {
return "PROXY 127.0.0.1:8787";
}

0 comments on commit 432521c

Please sign in to comment.