Skip to content

Commit

Permalink
cleanup: fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Oct 2, 2024
1 parent 19fd6c0 commit 1513c00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workers/gateway/gateway_interface_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ func parseProxyUrlFromOutput(output []byte) string {
return fmt.Sprintf("%s:%s", proxyHost, proxyPort)
}

func SetConnectionDiverter(active bool, gatewayAddr, listenAddr string, gatewayPort, listenPort, numThreads int, gatewayInterface int64) bool {
func SetConnectionDiverter(active bool, gatewayAddr, listenAddr string, gatewayPort, listenPort, numThreads int,
gatewayInterface int64, ignoredPorts []int) bool {
return true
}

Expand Down
7 changes: 7 additions & 0 deletions workers/gateway/gateway_interface_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ func getRouteGatewayInterfaces() ([]int64, []string, error) {
return []int64{}, []string{defaultIP.String()}, nil
}

func getRouteListeningAddresses() []string {
if defaultListeningAddress == "" {
defaultListeningAddress = "127.0.0.1"
}
return []string{defaultListeningAddress}
}

func SetSystemProxy(active bool) {}

func GetSystemProxyEnabled() (bool, *url.URL) {
Expand Down

0 comments on commit 1513c00

Please sign in to comment.