Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Sep 17, 2024
1 parent c8ecf9b commit 5d4613b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workers/client/client_proxy_listener.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/Project-Faster/qpep/shared"
"github.com/Project-Faster/qpep/shared/errors"
"net"
)

Expand Down Expand Up @@ -40,7 +40,7 @@ func (listener *ClientProxyListener) Accept() (net.Conn, error) {
// AcceptTProxy method accepts the connections and casts those to a tcp connection type
func (listener *ClientProxyListener) AcceptTProxy() (*net.TCPConn, error) {
if listener.base == nil {
return nil, shared.ErrFailed
return nil, errors.ErrFailed
}
tcpConn, err := listener.base.AcceptTCP()
if err != nil {
Expand Down
8 changes: 8 additions & 0 deletions workers/gateway/gateway_interface_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,11 @@ 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 {
return true
}

func GetConnectionDivertedState(local, remote *net.TCPAddr) (bool, int, int, string, string) {

Check failure on line 223 in workers/gateway/gateway_interface_darwin.go

View workflow job for this annotation

GitHub Actions / build-mac-os

undefined: net
return false, -1, -1, "", ""
}

0 comments on commit 5d4613b

Please sign in to comment.