Skip to content
Snippets Groups Projects
Commit e47b2b75 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: peers without any IP but with DNS were rejected

parent 4a8436bc
No related branches found
No related tags found
No related merge requests found
...@@ -98,8 +98,8 @@ function PeerParser (onError) { ...@@ -98,8 +98,8 @@ function PeerParser (onError) {
} }
if(!err){ if(!err){
// IP // IP
if(!bma.ipv4 && !bma.ipv6) if(!bma.dns && !bma.ipv4 && !bma.ipv6)
err = {code: codes.NO_IP_GIVEN, message: "It must be given at least one IP, either v4 or v6"}; err = {code: codes.NO_IP_GIVEN, message: "It must be given at least DNS or one IP, either v4 or v6"};
} }
if(!err){ if(!err){
// Port // Port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment