mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Fix some awkward NOIPV6 typoes and ommissions
This commit is contained in:
parent
5cccf7cbdd
commit
9416012a01
@ -69,7 +69,7 @@ static void pr_ip6(struct node *node, CBFUNC cbf, void*cb){
|
||||
|
||||
static void pr_sa(struct node *node, CBFUNC cbf, void*cb){
|
||||
#ifdef NOIPV6
|
||||
if(node->value)return pr_ip(node, &((struct sockaddr_in *)node->value)->sin_addr.s_addr)
|
||||
if(node->value)return pr_ip(node, cbf, cb);
|
||||
#else
|
||||
char buf[64];
|
||||
buf[0] = '[';
|
||||
|
@ -112,7 +112,7 @@ int
|
||||
#define SASIZE(sa) (((struct sockaddr_in *)sa)->sin_family == AF_INET6? sizeof(struct sockaddr_in6):sizeof(struct sockaddr_in))
|
||||
#else
|
||||
#define SAPORT(sa) (&((struct sockaddr_in *)sa)->sin_port)
|
||||
#define SAADDR(sa) ((unsigned char *)&((struct sockaddr_in *)sa)->sin_addr.a_addr)
|
||||
#define SAADDR(sa) ((unsigned char *)&((struct sockaddr_in *)sa)->sin_addr.s_addr)
|
||||
#define SAADDRLEN(sa) (4)
|
||||
#define SASOCK(sa) (PF_INET)
|
||||
#define SASIZE(sa) (sizeof(struct sockaddr_in))
|
||||
@ -359,7 +359,7 @@ struct srvparam {
|
||||
#ifndef NOIPV6
|
||||
struct sockaddr_in6 intsa;
|
||||
#else
|
||||
struct sockaddr_in intsa
|
||||
struct sockaddr_in intsa;
|
||||
#endif
|
||||
unsigned long extip;
|
||||
pthread_mutex_t counter_mutex;
|
||||
@ -487,7 +487,7 @@ struct extparam {
|
||||
#ifndef NOIPV6
|
||||
struct sockaddr_in6 intsa;
|
||||
#else
|
||||
struct sockaddr_in intsa
|
||||
struct sockaddr_in intsa;
|
||||
#endif
|
||||
unsigned long extip;
|
||||
unsigned short extport;
|
||||
|
Loading…
Reference in New Issue
Block a user