mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
3.02k stars 606 forks source link

Syntax error in authorization file #529

Closed fearlings123 closed 2 years ago

fearlings123 commented 2 years ago

Attempting to sign onto the HTTP interface with authorization enabled results in: read_auth_file: syntax error in authorization file: foo=deadbeaf

I started the service via: .\webrtc-streamer.exe -A .\password.txt

Where password.txt contains:

foo=deadbeaf

I am running the Windows 0.70 AMD64 build downloaded from the Github release page.

mpromonet commented 2 years ago

Hi,

Did you try using a password file with the format specified in https://github.com/civetweb/civetweb/blob/b5250570d5054a892e2a36859fa819525be062b9/docs/UserManual.md#global_auth_file

Best Regards; Michel

fearlings123 commented 2 years ago

Thanks, that works. I was incorrectly using the syntax suggested in src\examples\turnserver\read_auth_file_unittest.cc