mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-16 01:12:54 -07:00
Tests for Component and code style fixes (#129)
* Tests for Component and code style fixes
This commit is contained in:
committed by
Jérôme Sautret
parent
7d89353156
commit
1822089db6
@@ -23,7 +23,7 @@ func ensurePort(addr string, port int) string {
|
||||
// This is IPV4 without port
|
||||
return addr + ":" + strconv.Itoa(port)
|
||||
case 1:
|
||||
// This is IPV$ with port
|
||||
// This is IPV6 with port
|
||||
return addr
|
||||
default:
|
||||
// This is IPV6 without port, as you need to use bracket with port in IPV6
|
||||
|
||||
Reference in New Issue
Block a user