peers / peerjs-server

Server for PeerJS
https://peerjs.com
MIT License
4.38k stars 1.09k forks source link

-p and --port options are doing different things #129

Closed dorthrithil closed 5 years ago

dorthrithil commented 5 years ago

I can start the server using either -p=9000 or --port=9000. As both are listed as aliases in the options I would expect them to behave identically. However I get the following output:

MyMachine:bin myuser$ ./peerjs -p=9000
Started PeerServer on undefined, port: undefined, path: / (v. 0.2.9)

vs.

MyMachine:bin myuser$ ./peerjs --port=9000 
Started PeerServer on ::, port: 9000, path: / (v. 0.2.9)

I'm not able to connect using -p as the IP and port seem to be undefined.

d07RiV commented 5 years ago

Single character arguments are passed in as -p9000 normally.

afrokick commented 5 years ago

or -p 9000 with whitespace