diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-09-01 18:53:01 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-09-01 18:53:01 +0200 |
commit | cc588b680ff3b6978950422c7f7b27e47940702e (patch) | |
tree | 56690aa23547a78c74639cf179a69c1cac5b8c8f /openvpn | |
parent | 7a0dc02b51044b6dc5e7ca2e8e1cca9eee813574 (diff) |
Add Xposed module to ignore VPN Confirmation dialog (does not work yet…)
Diffstat (limited to 'openvpn')
-rw-r--r-- | openvpn/src/openvpn/socket.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/openvpn/src/openvpn/socket.c b/openvpn/src/openvpn/socket.c index ee44ad3c..f6af489e 100644 --- a/openvpn/src/openvpn/socket.c +++ b/openvpn/src/openvpn/socket.c @@ -1191,6 +1191,7 @@ resolve_remote (struct link_socket *sock, unsigned int flags = sf2gaf(GETADDR_RESOLVE|GETADDR_UPDATE_MANAGEMENT_STATE, sock->sockflags); int retry = 0; int status = -1; + struct addrinfo* ai; if (proto_is_dgram(sock->info.proto)) flags |= GETADDR_DATAGRAM; @@ -1229,20 +1230,20 @@ resolve_remote (struct link_socket *sock, ASSERT (0); } - struct addrinfo* ai; - status = openvpn_getaddrinfo (flags, sock->remote_host, sock->remote_port, - retry, signal_received, sock->info.af, &ai); - if(status == 0) { - sock->info.lsa->remote_list = ai; - sock->info.lsa->current_remote = ai; - - dmsg (D_SOCKET_DEBUG, "RESOLVE_REMOTE flags=0x%04x phase=%d rrs=%d sig=%d status=%d", - flags, - phase, - retry, - signal_received ? *signal_received : -1, - status); - } + status = openvpn_getaddrinfo (flags, sock->remote_host, sock->remote_port, + retry, signal_received, sock->info.af, &ai); + + if(status == 0) { + sock->info.lsa->remote_list = ai; + sock->info.lsa->current_remote = ai; + + dmsg (D_SOCKET_DEBUG, "RESOLVE_REMOTE flags=0x%04x phase=%d rrs=%d sig=%d status=%d", + flags, + phase, + retry, + signal_received ? *signal_received : -1, + status); + } if (signal_received) { if (*signal_received) |