File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1515
1616
1717@router .get ("" )
18- def get_config () -> ConfigResponse :
18+ def get_config (request : Request ) -> ConfigResponse :
1919 """Get config endpoint
2020
2121 Returns:
@@ -40,7 +40,10 @@ def get_config() -> ConfigResponse:
4040 EJS_DISABLE_AUTO_UNLOAD = cfg .EJS_DISABLE_AUTO_UNLOAD ,
4141 EJS_DISABLE_BATCH_BOOTUP = cfg .EJS_DISABLE_BATCH_BOOTUP ,
4242 EJS_NETPLAY_ENABLED = cfg .EJS_NETPLAY_ENABLED ,
43- EJS_NETPLAY_ICE_SERVERS = cfg .EJS_NETPLAY_ICE_SERVERS ,
43+ # Contains credentials, so only send when authenticated
44+ EJS_NETPLAY_ICE_SERVERS = (
45+ cfg .EJS_NETPLAY_ICE_SERVERS if request .user .is_authenticated else []
46+ ),
4447 EJS_CONTROLS = cfg .EJS_CONTROLS ,
4548 EJS_SETTINGS = cfg .EJS_SETTINGS ,
4649 SCAN_METADATA_PRIORITY = cfg .SCAN_METADATA_PRIORITY ,
You can’t perform that action at this time.
0 commit comments