File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public UsenetStreamingClient(ConfigManager configManager)
1818 {
1919 // get connection settings from config-manager
2020 var host = configManager . GetConfigValue ( "usenet.host" ) ?? string . Empty ;
21- var port = int . Parse ( configManager . GetConfigValue ( "usenet.port" ) ?? "563 " ) ;
22- var useSsl = bool . Parse ( configManager . GetConfigValue ( "usenet.use_ssl " ) ?? "true " ) ;
21+ var port = int . Parse ( configManager . GetConfigValue ( "usenet.port" ) ?? "119 " ) ;
22+ var useSsl = bool . Parse ( configManager . GetConfigValue ( "usenet.use-ssl " ) ?? "false " ) ;
2323 var user = configManager . GetConfigValue ( "usenet.user" ) ?? string . Empty ;
2424 var pass = configManager . GetConfigValue ( "usenet.pass" ) ?? string . Empty ;
2525 var connections = int . Parse ( configManager . GetConfigValue ( "usenet.connections" ) ?? "10" ) ;
@@ -46,7 +46,7 @@ public UsenetStreamingClient(ConfigManager configManager)
4646 var connectionCount = int . Parse ( configEventArgs . NewConfig [ "usenet.connections" ] ) ;
4747 var newHost = configEventArgs . NewConfig [ "usenet.host" ] ;
4848 var newPort = int . Parse ( configEventArgs . NewConfig [ "usenet.port" ] ) ;
49- var newUseSsl = bool . Parse ( configEventArgs . NewConfig [ "usenet.use-ssl" ] ) ;
49+ var newUseSsl = bool . Parse ( configEventArgs . NewConfig . GetValueOrDefault ( "usenet.use-ssl" , "false" ) ) ;
5050 var newUser = configEventArgs . NewConfig [ "usenet.user" ] ;
5151 var newPass = configEventArgs . NewConfig [ "usenet.pass" ] ;
5252 multiConnectionClient . UpdateConnectionPool ( new ( connectionCount , cancellationToken =>
You can’t perform that action at this time.
0 commit comments