Skip to content

Commit

Permalink
feat: add support for water multiplex
Browse files Browse the repository at this point in the history
  • Loading branch information
WendelHime authored and myleshorton committed Dec 3, 2024
1 parent 80b5664 commit a636ff9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chained/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ func createImpl(configDir, name, addr, transport string, s *config.ProxyConfig,
func isAMultiplexedTransport(transport string) bool {
return transport == "tlsmasq" ||
transport == "starbridge" ||
transport == "algeneva"
transport == "algeneva" ||
transport == "water"
}

// ForceProxy forces everything through the HTTP proxy at forceAddr using
Expand Down Expand Up @@ -339,7 +340,7 @@ func newProxy(name, addr, protocol, network string, s *config.ProxyConfig, uc co
name: name,
protocol: protocol,
network: network,
multiplexed: s.MultiplexedAddr != "",
multiplexed: s.MultiplexedAddr != "" || isAMultiplexedTransport(name),
addr: addr,
authToken: s.AuthToken,
user: uc,
Expand Down

0 comments on commit a636ff9

Please sign in to comment.