mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 01:22:26 +02:00
/SERVER ADD: added -noproxy option and -proxy which just removes the
-noproxy. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2344 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d74d284463
commit
182adb805c
4 changed files with 9 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ IPADDR *own_ip4, *own_ip6; /* resolved own_address if not NULL */
|
|||
time_t last_connect; /* to avoid reconnecting too fast.. */
|
||||
|
||||
unsigned int autoconnect:1;
|
||||
unsigned int no_proxy:1;
|
||||
unsigned int last_failed:1; /* if last connection attempt failed */
|
||||
unsigned int banned:1; /* if we're banned from this server */
|
||||
unsigned int dns_error:1; /* DNS said the host doesn't exist */
|
||||
|
|
|
|||
|
|
@ -156,6 +156,9 @@ static void server_setup_fill_server(SERVER_CONNECT_REC *conn,
|
|||
|
||||
sserver->last_connect = time(NULL);
|
||||
|
||||
if (sserver->no_proxy)
|
||||
g_free_and_null(conn->proxy);
|
||||
|
||||
if (sserver->family != 0 && conn->family == 0)
|
||||
conn->family = sserver->family;
|
||||
if (sserver->port > 0 && conn->port <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue