1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-31 15:00:59 +01:00

uclient: Show error on invalid peer options specification

This commit is contained in:
NeoCat 2022-08-05 13:19:18 +09:00
parent 1987cacb52
commit 6be087581f

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;