1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-06-26 12:30:18 +02:00

Support IPv6 addresses

This also checks for IPv6-mapped IPv4 addresses.

Closes #1.
This commit is contained in:
Niklas Haas
2015-06-18 06:09:46 +02:00
parent c3331d19ca
commit d2747549fe
2 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,7 @@ module Dyndnsd
# malformed myip?
begin
IPAddr.new(params["myip"], Socket::AF_INET)
IPAddr.new(params["myip"])
rescue ArgumentError
params["myip"] = env["REMOTE_ADDR"]
end