diff --git a/src/www/vpn_openvpn_server.php b/src/www/vpn_openvpn_server.php index c71be1d25..f9245b96a 100644 --- a/src/www/vpn_openvpn_server.php +++ b/src/www/vpn_openvpn_server.php @@ -778,7 +778,7 @@ function tuntap_change() { $auth_servers = auth_get_authserver_list(); foreach ($auth_servers as $auth_key => $auth_server) : $selected = ""; - if (in_array($auth_server['name'], $authmodes)) { + if (in_array($auth_key, $authmodes)) { $selected = "selected=\"selected\""; } ?>