diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2018-06-01 14:25:05 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2018-06-01 14:25:05 +0500 |
commit | 5e0f45c6138afa0abc0f601e7265bd40e756ebc3 (patch) | |
tree | 7475e9a184e62a0055ae2c8ce20491025caa8518 | |
parent | 88dc3b4156edac295e399c77f5a7f88bdd5e3cae (diff) | |
download | accel-ppp-5e0f45c6138afa0abc0f601e7265bd40e756ebc3.tar.gz accel-ppp-5e0f45c6138afa0abc0f601e7265bd40e756ebc3.zip |
sstp: fix proxy proto v1 over ipv6
-rw-r--r-- | accel-pppd/ctrl/sstp/sstp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index 2218df6b..be8762d5 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -617,7 +617,7 @@ static int proxy_parse(struct buffer_t *buf, struct sockaddr_t *peer, struct soc goto error; } peer->len = addr->len = sizeof(addr->u.sin6); - peer->u.sin6.sin6_family = addr->u.sin6.sin6_family = AF_INET; + peer->u.sin6.sin6_family = addr->u.sin6.sin6_family = AF_INET6; peer->u.sin6.sin6_port = htons(atoi(src_port)); addr->u.sin6.sin6_port = htons(atoi(dst_port)); } else if (strcasecmp(ptr, PROXY_UNKNOWN) != 0) |