From 9ad861182ae7dc8e305bca6e0fffe6386ddc3e86 Mon Sep 17 00:00:00 2001 From: gryf Date: Mon, 5 Jul 2021 19:45:07 +0200 Subject: [PATCH] Handle forwarding ports mappings in config --- box.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/box.py b/box.py index 6c34cf9..cd97e17 100755 --- a/box.py +++ b/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