mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Use inet_addr instead of inet_network to fix windows build.
This commit is contained in:
parent
7570d885da
commit
f319d3b910
3
util.c
3
util.c
@ -1867,7 +1867,8 @@ static bool socks4_negotiate(struct pool *pool, int sockd, bool socks4a)
|
|||||||
|
|
||||||
/* See if we've been given an IP address directly to avoid needing to
|
/* See if we've been given an IP address directly to avoid needing to
|
||||||
* resolve it. */
|
* resolve it. */
|
||||||
inp = inet_network(pool->sockaddr_url);
|
inp = inet_addr(pool->sockaddr_url);
|
||||||
|
inp = ntohl(inp);
|
||||||
if ((int)inp != -1)
|
if ((int)inp != -1)
|
||||||
socks4a = false;
|
socks4a = false;
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user