UDP connect wrongly passes port as addr family to resolveHost
This commit is contained in:
parent
26b6190743
commit
e2834a245b
|
@ -975,7 +975,12 @@ struct UDPConnection {
|
||||||
Once connected, the UDPConnection can only communicate with the specified peer.
|
Once connected, the UDPConnection can only communicate with the specified peer.
|
||||||
Otherwise communication with any reachable peer is possible.
|
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
|
/// ditto
|
||||||
void connect(NetworkAddress address)
|
void connect(NetworkAddress address)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue