diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-12 20:00:15 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | be1f3d60b349e769226bdbcb54f4f07460fd890a (patch) | |
| tree | 203df0fda3a0f26d5d9cafda53317f9366779f8d /internal/server | |
| parent | fdde669ef621378f4b78ac1cd3a8ddf6ef42d176 (diff) | |
Server: Only return should failover if prefer TCP was false too
Diffstat (limited to 'internal/server')
| -rw-r--r-- | internal/server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 4b960a5..abe5178 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -154,7 +154,7 @@ func (s *Server) connect(ctx context.Context, wgSupport bool, pTCP bool) (*srvty Protocol: apicfg.Protocol, DefaultGateway: chosenP.DefaultGateway, DNSSearchDomains: chosenP.DNSSearchDomains, - ShouldFailover: chosenP.ShouldFailover(), + ShouldFailover: chosenP.ShouldFailover() && !pTCP, Proxy: proxy, }, nil } |
