mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Make it possible to port clients to the new api by just replacing
proxy_enabled with proxy_type.
This commit is contained in:
parent
c2e394c5c2
commit
efea858c91
|
@ -609,6 +609,7 @@ TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, const uint8_t *public
|
|||
uint8_t family = ip_port.ip.family;
|
||||
|
||||
TCP_Proxy_Info default_proxyinfo;
|
||||
|
||||
if (proxy_info == NULL) {
|
||||
default_proxyinfo.proxy_type = TCP_PROXY_NONE;
|
||||
proxy_info = &default_proxyinfo;
|
||||
|
|
|
@ -875,8 +875,8 @@ int tox_isconnected(const Tox *tox);
|
|||
|
||||
typedef enum {
|
||||
TOX_PROXY_NONE,
|
||||
TOX_PROXY_HTTP,
|
||||
TOX_PROXY_SOCKS5
|
||||
TOX_PROXY_SOCKS5,
|
||||
TOX_PROXY_HTTP
|
||||
} TOX_PROXY_TYPE;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user