Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-swarm
Commits
f6fd598a
Commit
f6fd598a
authored
May 05, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add env var for overriding muxer prefs
parent
451f36d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
swarm.go
swarm.go
+7
-0
No files found.
swarm.go
View file @
f6fd598a
...
...
@@ -5,6 +5,8 @@ package swarm
import
(
"fmt"
"io/ioutil"
"os"
"strings"
"sync"
"time"
...
...
@@ -48,6 +50,11 @@ func init() {
msstpt
.
AddTransport
(
"/yamux/1.0.0"
,
ymxtpt
)
msstpt
.
AddTransport
(
"/spdy/3.1.0"
,
spdy
.
Transport
)
// allow overriding of muxer preferences
if
prefs
:=
os
.
Getenv
(
"LIBP2P_MUX_PREFS"
);
prefs
!=
""
{
msstpt
.
OrderPreference
=
strings
.
Fields
(
prefs
)
}
PSTransport
=
msstpt
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment