Update proto file for websocket and httpupgrade (breaking)

This commit is contained in:
yuhan6665
2024-03-29 01:39:59 -04:00
committed by RPRX
parent 53e5814d19
commit e2302b421c
12 changed files with 121 additions and 194 deletions

View File

@@ -95,7 +95,7 @@ func TestDialWithRemoteAddr(t *testing.T) {
conn, err := Dial(context.Background(), net.TCPDestination(net.DomainAddress("localhost"), 13148), &internet.MemoryStreamConfig{
ProtocolName: "websocket",
ProtocolSettings: &Config{Path: "ws", Header: []*Header{{Key: "X-Forwarded-For", Value: "1.1.1.1"}}},
ProtocolSettings: &Config{Path: "ws", Header: map[string]string{"X-Forwarded-For": "1.1.1.1"}},
})
common.Must(err)