mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
fix sequence option declaration in yaml files
This commit is contained in:
parent
2e30c4073d
commit
2236b52816
@ -320,7 +320,9 @@ class OptManager:
|
||||
update = {}
|
||||
for optname, optval in self.deferred.items():
|
||||
if optname in self._options:
|
||||
update[optname] = self.parse_setval(self._options[optname], optval)
|
||||
if isinstance(optval, str):
|
||||
optval = self.parse_setval(self._options[optname], optval)
|
||||
update[optname] = optval
|
||||
self.update(**update)
|
||||
for k in update.keys():
|
||||
del self.deferred[k]
|
||||
|
Loading…
Reference in New Issue
Block a user