From 981ae27bd980cb43ddef1906e9f17a7756314696 Mon Sep 17 00:00:00 2001 From: ivelin Date: Sat, 23 Jan 2021 00:04:53 +0000 Subject: [PATCH] fix: allow more lenient peers id load --- src/peerjs/ext/http_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peerjs/ext/http_proxy.py b/src/peerjs/ext/http_proxy.py index ccaf845..20c8ef0 100644 --- a/src/peerjs/ext/http_proxy.py +++ b/src/peerjs/ext/http_proxy.py @@ -97,7 +97,7 @@ def _loadPeerId(): if conf_file.exists(): conf = {} with conf_file.open() as infile: - conf = json.load(infile) + conf = yaml.load(infile) savedPeerId = conf.get('peerId', None)