Skip to content

Commit a5c17aa

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

File tree

5 files changed

+1070
-17
lines changed

5 files changed

+1070
-17
lines changed

src/http.c

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

828+
if (tunnel->use_tun) {
829+
tunnel->ipv4.ip_addr.s_addr = inet_addr(gateway);
830+
tunnel->ipv4.peer_addr.s_addr = inet_addr("192.0.2.1");
831+
}
832+
828833
// The dns search string
829834
val = buffer;
830835
while ((val = xml_find('<', "dns", val, 2))) {

0 commit comments

Comments
 (0)