mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 21:47:59 +01:00
Handle forwarding ports mappings in config
This commit is contained in:
5
box.py
5
box.py
@@ -478,6 +478,11 @@ class Config:
|
|||||||
for key, val in conf.get('boxpy_data', {}).items():
|
for key, val in conf.get('boxpy_data', {}).items():
|
||||||
if not val:
|
if not val:
|
||||||
continue
|
continue
|
||||||
|
if key == 'forwarding':
|
||||||
|
for ports in val:
|
||||||
|
k, v = ports.split(':')
|
||||||
|
self.forwarding[k] = v
|
||||||
|
continue
|
||||||
setattr(self, key, str(val))
|
setattr(self, key, str(val))
|
||||||
|
|
||||||
# remove boxpy_data since it will be not needed on the guest side
|
# remove boxpy_data since it will be not needed on the guest side
|
||||||
|
|||||||
Reference in New Issue
Block a user