Print username only in debug mode
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -73,7 +73,7 @@ You may also need to use `h264` format while using the SD stream.
|
||||
By default Neolink serves on all IP addresses on port 8554.
|
||||
You can modify this by changing the `bind` and the `bind_port` parameter.
|
||||
|
||||
Use can enable `rtsps` (TLS) by adding a `certificate = "/path/to/pem"` to the config. This pem should contain by the certificate and the key used for the server. If TLS is enabled all connections must use `rtsps`. Use can also control client side TLS with the config option `tls_client_auth = "none|request|require"`, in this case the client should present a certificate signed by the server's CA, this is disabled by default.
|
||||
Use can enable `rtsps` (TLS) by adding a `certificate = "/path/to/pem"` to the config. This pem should contain by the certificate and the key used for the server. If TLS is enabled all connections must use `rtsps`. You can also control client side TLS with the config option `tls_client_auth = "none|request|require"`, in this case the client should present a certificate signed by the server's CA, this is disabled by default.
|
||||
|
||||
Use can enable basic authentication by adding the configuration option `username = "someone"` and `password = "somepass"`. Both username and password must be set for this to work.
|
||||
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ impl RtspServer {
|
||||
};
|
||||
|
||||
if ! user.is_empty() && ! pass.is_empty() {
|
||||
info!("Setting credentials for user {}", user);
|
||||
debug!("Setting credentials for user {}", user);
|
||||
debug!("Password is {}", pass);
|
||||
let token = RTSPToken::new(&[(*RTSP_TOKEN_MEDIA_FACTORY_ROLE, &"watcher")]);
|
||||
let basic = RTSPAuth::make_basic(user, pass);
|
||||
|
||||
Reference in new issue
Block a user