소스 검색

settings: change inbound_connections default to 10

Setting this to 0 disables inbound sessions by default, even if we have
configured a inbound address.

If we have a inbound address configured, it should be assumed we want to accept inbound sessions.
draoi 2 년 전
부모
커밋
589a847205
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/net/settings.rs

+ 1 - 1
src/net/settings.rs

@@ -93,7 +93,7 @@ impl Default for Settings {
             allowed_transports: vec![],
             transport_mixing: true,
             outbound_connections: 0,
-            inbound_connections: 0,
+            inbound_connections: 10,
             manual_attempt_limit: 0,
             outbound_connect_timeout: 15,
             channel_handshake_timeout: 10,