mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +00:00
Make IPv4 and IPv6 localhost connections use the same room
This commit is contained in:
@@ -158,6 +158,10 @@ class Peer {
|
||||
} else {
|
||||
this.ip = request.connection.remoteAddress;
|
||||
}
|
||||
// IPv4 and IPv6 use different values to refer to localhost
|
||||
if (this.ip == '::1' || this.ip == '::ffff:127.0.0.1') {
|
||||
this.ip = '127.0.0.1';
|
||||
}
|
||||
}
|
||||
|
||||
_setPeerId(request) {
|
||||
|
||||
Reference in New Issue
Block a user