socksProxyOverWSConnection is an OriginConnection that streams SOCKS connections over WS. The connection to the origin happens inside the SOCKS code as the client specifies the origin details in the packet.
| 74 | // The connection to the origin happens inside the SOCKS code as the client specifies the origin |
| 75 | // details in the packet. |
| 76 | type socksProxyOverWSConnection struct { |
| 77 | accessPolicy *ipaccess.Policy |
| 78 | } |
| 79 | |
| 80 | func (sp *socksProxyOverWSConnection) Stream(ctx context.Context, tunnelConn io.ReadWriter, log *zerolog.Logger) { |
| 81 | wsCtx, cancel := context.WithCancel(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected