1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-10-16 20:02:28 +02:00

Merge branch 'master' into update-3.3

This commit is contained in:
2025-10-02 20:20:44 +02:00
committed by GitHub
13 changed files with 80 additions and 36 deletions

View File

@@ -89,7 +89,7 @@ module Dyndnsd
# @return [Array{Array{Object}}]
def self.parse_endpoints(endpoint_list)
endpoint_list.map { |addr_string| addr_string.split('@') }
.map { |addr_parts| [addr_parts[0], addr_parts[1].to_i || 53] }
.map { |addr_parts| [addr_parts[0], addr_parts[1]&.to_i || 53] }
.map { |addr| [:tcp, :udp].map { |type| [type] + addr } }
.flatten(1)
end