diff options
-rw-r--r-- | plugin/eurephia-auth.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugin/eurephia-auth.c b/plugin/eurephia-auth.c index e0669fa..8c018e2 100644 --- a/plugin/eurephia-auth.c +++ b/plugin/eurephia-auth.c @@ -273,14 +273,6 @@ OPENVPN_EXPORT int openvpn_plugin_func_v1(openvpn_plugin_handle_t handle, case OPENVPN_PLUGIN_CLIENT_DISCONNECT: // Register logout result = eurephia_disconnect(ctx, envp); - if( (result == 1) && (ctx->tuntype == tuntype_TUN) ) { - // If running in TUN mode, OPENVPN_PLUGIN_LEARN_ADDRESS will not be called, - // so we fake this call here instead. - char *vpnipaddr = GETENV_POOLIPADDR(ctx, envp); - - result = (vpnipaddr ? eurephia_learn_address(ctx, "delete", vpnipaddr, envp) : 0); - free_nullsafe(ctx, vpnipaddr); - } break; case OPENVPN_PLUGIN_LEARN_ADDRESS: // Log IP address, MAC address and update firewall |