Prefer ipv6 protocol on direct connections

This commit is contained in:
9seconds
2019-12-10 13:59:27 +03:00
parent 19efcc93fc
commit 422ed5b071
4 changed files with 33 additions and 17 deletions
+1 -1
View File
@@ -37,5 +37,5 @@ func (d *directTelegram) Dial(dc conntypes.DC,
dc = conntypes.DCDefaultIdx
}
return d.baseTelegram.dial(dc-1, protocol)
return d.baseTelegram.dial(dc-1, conntypes.ConnectionProtocolAny)
}