feat: add socks5 proxy support

This commit is contained in:
m.dreamfly
2026-02-13 15:04:20 +08:00
parent c9a4eae8f2
commit 54a7ab02e1
2 changed files with 107 additions and 7 deletions

View File

@@ -15,9 +15,9 @@ esp_err_t http_proxy_init(void);
bool http_proxy_is_enabled(void);
/**
* Save proxy host and port to NVS.
* Save proxy host, port, and type to NVS.
*/
esp_err_t http_proxy_set(const char *host, uint16_t port);
esp_err_t http_proxy_set(const char *host, uint16_t port, const char *type);
/**
* Remove proxy config from NVS.