evgeny-gridasov / openvpn-otp

OpenVPN OTP token support plugin
GNU General Public License v3.0
279 stars 74 forks source link

Fix an error when remote IPv6 address is used #41

Closed johnrvt closed 3 years ago

johnrvt commented 3 years ago

This PR fixes a "OTP_AUTH: IP or Port number is missing" error when a client uses an IPv6 address to connect to the server.

When the connection is made on the IPv6 address, OpenVPN does not provide the environment variable "untrusted_ip" but "untrusted_ip6".