1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-18 21:10:17 +01:00

Handle forwarding ports mappings in config

This commit is contained in:
2021-07-05 19:45:07 +02:00
parent b2ef6890ba
commit 9ad861182a

5
box.py
View File

@@ -478,6 +478,11 @@ class Config:
for key, val in conf.get('boxpy_data', {}).items():
if not val:
continue
if key == 'forwarding':
for ports in val:
k, v = ports.split(':')
self.forwarding[k] = v
continue
setattr(self, key, str(val))
# remove boxpy_data since it will be not needed on the guest side