mirror of https://github.com/ospab/ostp.git
Adds optional username/password to the server's outbound proxy config so an upstream SOCKS5 that requires authentication — a residential-proxy service, for instance — can be used. Both the TCP-connect and UDP-associate paths now run a shared RFC 1929 negotiation: when credentials are set the client offers method 0x02 (and 0x00), and on a 0x02 selection performs the username/password sub-negotiation; a proxy that rejects all methods reports a clear "set outbound.username/password" error instead of a bare failure. No credentials = the previous no-auth behaviour, unchanged. The two on-disk config templates (`ostp init` / `ostp setup`) now carry empty "username"/"password" in the outbound block so the fields are discoverable and ready to fill. Both fields default on deserialize, so existing configs are unaffected. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| test_udp.rs | ||