(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestUnsupportedBind(t *testing.T) { |
| 13 | req := createRequest(t, socks5Version, bindCommand, "2001:db8::68", 1337, false) |
| 14 | var b bytes.Buffer |
| 15 | |
| 16 | requestHandler := NewRequestHandler(NewNetDialer(), nil) |
| 17 | err := requestHandler.Handle(req, &b) |
| 18 | assert.NoError(t, err) |
| 19 | assert.True(t, b.Bytes()[1] == commandNotSupported, "expected a response") |
| 20 | } |
| 21 | |
| 22 | func TestUnsupportedAssociate(t *testing.T) { |
| 23 | req := createRequest(t, socks5Version, associateCommand, "127.0.0.1", 1337, false) |
nothing calls this directly
no test coverage detected