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:
5
box.py
5
box.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user