We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae6181 commit 803ae08Copy full SHA for 803ae08
1 file changed
src/http.c
@@ -874,7 +874,10 @@ static int parse_xml_config(struct tunnel *tunnel, const char *buffer)
874
log_warn("No gateway address, using interface for routing\n");
875
876
if (tunnel->config->tun) {
877
- tunnel->ipv4.ip_addr.s_addr = inet_addr(gateway);
+ if (!gateway)
878
+ tunnel->ipv4.ip_addr.s_addr = inet_addr("192.0.2.2");
879
+ else
880
+ tunnel->ipv4.ip_addr.s_addr = inet_addr(gateway);
881
tunnel->ipv4.peer_addr.s_addr = inet_addr("192.0.2.1");
882
}
883
0 commit comments