From c24ff8fe271afa669950036d6d91b071a01d6e34 Mon Sep 17 00:00:00 2001 From: Nicolas Emiliani Date: Mon, 12 Nov 2007 13:01:36 -0300 Subject: [PATCH] Bug fix for the vpn --net= fixed --- pymin/services/vpn/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pymin/services/vpn/__init__.py b/pymin/services/vpn/__init__.py index 789d137..1e84361 100644 --- a/pymin/services/vpn/__init__.py +++ b/pymin/services/vpn/__init__.py @@ -101,7 +101,7 @@ class VpnHandler(Restorable, ConfigWriter, @handler('usage: start ') def start(self, vpn_src): if vpn_src in self.vpns: - call(('tincd','--net=',vpn_src)) + call(('tincd','--net='+ vpn_src)) @handler('usage: stop ') def stop(self, vpn_src): @@ -165,7 +165,6 @@ class VpnHandler(Restorable, ConfigWriter, if __name__ == '__main__': v = VpnHandler() - v.add('test','127.0.0.1','192.168.0.1','255.255.255.0') - #v.host.add('test', 'sarasa' ,'127.0.0.1', '205.25.36.36','kjdhfkbdskljvkjblkbjeslkjbvkljbselvslberjhbvslbevlhb') - v.delete('test') + v.add('prueba','sarasa','192.168.0.188','255.255.255.0') + v.host.add('prueba', 'azazel' ,'192.168.0.77', '192.168.0.0','kjdhfkbdskljvkjblkbjeslkjbvkljbselvslberjhbvslbevlhb') v.commit() -- 2.43.0