misukisu commited on
Commit
43f9f3a
·
verified ·
1 Parent(s): 1c82d37

bedrock: BDS_TRANSPORT switch (raknet)

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -76,6 +76,8 @@ def playit_tunnels():
76
 
77
  def nethernet_props():
78
  """Advertise the playit UDP tunnel as NetherNet's public gameplay endpoint."""
 
 
79
  try:
80
  import socket
81
  for t in playit_tunnels():
 
76
 
77
  def nethernet_props():
78
  """Advertise the playit UDP tunnel as NetherNet's public gameplay endpoint."""
79
+ if os.environ.get("BDS_TRANSPORT", "nethernet") == "raknet":
80
+ return {"transport": "raknet"}
81
  try:
82
  import socket
83
  for t in playit_tunnels():