Skip to content

Commit ced9f8a

Browse files
Apply patch provided by @rain2fog in #801
pppd → tun interface + embedded PPP code
1 parent cd11b72 commit ced9f8a

File tree

5 files changed

+1071
-18
lines changed

5 files changed

+1071
-18
lines changed

src/http.c

+5
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,11 @@ static int parse_xml_config(struct tunnel *tunnel, const char *buffer)
833833
if (!gateway)
834834
log_warn("No gateway address, using interface for routing\n");
835835

836+
if (tunnel->use_tun) {
837+
tunnel->ipv4.ip_addr.s_addr = inet_addr(gateway);
838+
tunnel->ipv4.peer_addr.s_addr = inet_addr("192.0.2.1");
839+
}
840+
836841
// The dns search string
837842
val = buffer;
838843
while ((val = xml_find('<', "dns", val, 2))) {

0 commit comments

Comments
 (0)