File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 52
52
TEST_EXPENSIVE : 1
53
53
IPFS_CHECK_RCMGR_DEFAULTS : 1
54
54
CONTINUE_ON_S_FAILURE : 1
55
+ LIBP2P_TCP_MUX : false # TODO
55
56
# increasing parallelism beyond 10 doesn't speed up the tests much
56
57
PARALLEL : ${{ github.repository == 'ipfs/kubo' && 10 || 3 }}
57
58
- name : Upload coverage report
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package libp2p
2
2
3
3
import (
4
4
"fmt"
5
+ "os"
6
+
5
7
"github.com/ipfs/kubo/config"
6
8
"github.com/ipshipyard/p2p-forge/client"
7
9
"github.com/libp2p/go-libp2p"
@@ -66,7 +68,7 @@ func Transports(tptConfig config.Transports) interface{} {
66
68
opts .Opts = append (opts .Opts , libp2p .Transport (webrtc .New ))
67
69
}
68
70
69
- if tcpEnabled && wsEnabled {
71
+ if tcpEnabled && wsEnabled && os . Getenv ( "LIBP2P_TCP_MUX" ) != "false" {
70
72
opts .Opts = append (opts .Opts , libp2p .ShareTCPListener ())
71
73
}
72
74
Original file line number Diff line number Diff line change @@ -155,7 +155,14 @@ Kubo tries to reuse the same source port for all connections to improve NAT
155
155
traversal. If this is an issue, you can disable it by setting
156
156
` LIBP2P_TCP_REUSEPORT ` to false.
157
157
158
- Default: true
158
+ Default: ` true `
159
+
160
+ ## ` LIBP2P_TCP_MUX `
161
+
162
+ Kubo tries to reuse the same listener port for raw TCP and WebSockers transports.
163
+ If this is an issue, you can disable it by setting ` LIBP2P_TCP_MUX ` to ` false ` .
164
+
165
+ Default: ` true `
159
166
160
167
## ` LIBP2P_MUX_PREFS `
161
168
You can’t perform that action at this time.
0 commit comments