mirror of
https://github.com/coturn/coturn.git
synced 2025-10-31 23:11:28 +01:00
uclient: Show error on invalid peer options specification
This commit is contained in:
parent
1987cacb52
commit
6be087581f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user