From e2834a245b5b8839bea88d9fd33021ea656f983b Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Fri, 7 Dec 2018 15:51:23 +0100 Subject: [PATCH] UDP connect wrongly passes port as addr family to resolveHost --- source/vibe/core/net.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 2c2a2a6..fbda6b5 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -975,7 +975,12 @@ struct UDPConnection { Once connected, the UDPConnection can only communicate with the specified peer. Otherwise communication with any reachable peer is possible. */ - void connect(string host, ushort port) { connect(resolveHost(host, port)); } + void connect(string host, ushort port) + { + auto address = resolveHost(host); + address.port = port; + connect(address); + } /// ditto void connect(NetworkAddress address) {