Merge pull request #934 from NeoCat/master

uclient: Show error on invalid peer options specification
This commit is contained in:
Gustavo Garcia 2022-08-05 15:50:12 +02:00 committed by GitHub
commit da9f4aea28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,6 +453,10 @@ int main(int argc, char **argv)
}
if (!c2c) {
if(!peer_address[0]) {
fprintf(stderr,"Either -e peer_address or -y must be specified\n");
return -1;
}
if (make_ioa_addr((const uint8_t*) peer_address, peer_port, &peer_addr) < 0) {
return -1;