mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 04:57:58 +01:00
Add '::1' to the loopbackAddresses
This commit is contained in:
parent
47ffcd8b6d
commit
eeea0e34ca
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ public final class Socks5BytestreamManager implements BytestreamManager {
|
|||
List<StreamHost> streamHosts = new ArrayList<StreamHost>();
|
||||
outerloop: for (String address : addresses) {
|
||||
// Prevent loopback addresses from appearing as streamhost
|
||||
final String[] loopbackAddresses = { "127.0.0.1", "0:0:0:0:0:0:0:1" };
|
||||
final String[] loopbackAddresses = { "127.0.0.1", "0:0:0:0:0:0:0:1", "::1" };
|
||||
for (String loopbackAddress : loopbackAddresses) {
|
||||
// Use 'startsWith' here since IPv6 addresses may have scope ID,
|
||||
// ie. the part after the '%' sign.
|
||||
|
|
Loading…
Reference in a new issue