Merge pull request #108 from Marenz/patch-1
UDP connect wrongly passes port as addr family to resolveHost
This commit is contained in:
commit
6a9a082ac4
|
@ -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