1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +03:00

Merge PR #524: Cedar/Proto_PPP.c: push 192.0.0.8 instead of 1.0.0.1 as gateway IP address

This commit is contained in:
Davide Beatrici 2018-11-07 00:32:20 +01:00 committed by GitHub
commit 6322497023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,7 +390,9 @@ void PPPThread(THREAD *thread, void *param)
// Notify the IP address of the PPP server // Notify the IP address of the PPP server
c = NewPPPLCP(PPP_LCP_CODE_REQ, 0); c = NewPPPLCP(PPP_LCP_CODE_REQ, 0);
ui = Endian32(0x01000001); // 1.0.0.1 // SoftEther VPN is L2-based VPN, so there is no concept of gateway IP address.
// We always push 192.0.0.8, which is defined in RFC7600 as dummy IPv4 address.
ui = Endian32(0xc0000008);
Add(c->OptionList, NewPPPOption(PPP_IPCP_OPTION_IP, &ui, sizeof(UINT))); Add(c->OptionList, NewPPPOption(PPP_IPCP_OPTION_IP, &ui, sizeof(UINT)));
ret = PPPSendRequest(p, PPP_PROTOCOL_IPCP, c); ret = PPPSendRequest(p, PPP_PROTOCOL_IPCP, c);
FreePPPLCP(c); FreePPPLCP(c);