mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
proxy.c now no longer refers to `cfg'. Instead, each of the three
proxy-indirection network functions (name_lookup, new_connection, new_listener) takes a `const Config *' as an argument, and extracts enough information from it before returning to handle that particular network operation in accordance with the proxy settings it specifies. This involved {win,ux}net.c due to a `const' repercussion. [originally from svn r2567]
This commit is contained in:
5
raw.c
5
raw.c
@ -96,7 +96,7 @@ static char *raw_init(void *frontend_handle, void **backend_handle,
|
||||
logevent(raw->frontend, buf);
|
||||
sfree(buf);
|
||||
}
|
||||
addr = name_lookup(host, port, realhost);
|
||||
addr = name_lookup(host, port, realhost, cfg);
|
||||
if ((err = sk_addr_error(addr)) != NULL)
|
||||
return err;
|
||||
|
||||
@ -113,7 +113,8 @@ static char *raw_init(void *frontend_handle, void **backend_handle,
|
||||
logevent(raw->frontend, buf);
|
||||
sfree(buf);
|
||||
}
|
||||
raw->s = new_connection(addr, *realhost, port, 0, 1, nodelay, (Plug) raw);
|
||||
raw->s = new_connection(addr, *realhost, port, 0, 1, nodelay,
|
||||
(Plug) raw, cfg);
|
||||
if ((err = sk_socket_error(raw->s)) != NULL)
|
||||
return err;
|
||||
|
||||
|
Reference in New Issue
Block a user