comparison src/plugins/plugin_misc_nat-port.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 2daf7b4c6756
children 8b37a62336c3
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
32 except ImportError: 32 except ImportError:
33 raise exceptions.MissingModule(u"Missing module MiniUPnPc, please download/install it (and its Python binding) at http://miniupnp.free.fr/ (or use pip install miniupnpc)") 33 raise exceptions.MissingModule(u"Missing module MiniUPnPc, please download/install it (and its Python binding) at http://miniupnp.free.fr/ (or use pip install miniupnpc)")
34 34
35 35
36 PLUGIN_INFO = { 36 PLUGIN_INFO = {
37 "name": "NAT port mapping", 37 C.PI_NAME: "NAT port mapping",
38 "import_name": "NAT-PORT", 38 C.PI_IMPORT_NAME: "NAT-PORT",
39 "type": C.PLUG_TYPE_MISC, 39 C.PI_TYPE: C.PLUG_TYPE_MISC,
40 "main": "NatPort", 40 C.PI_MAIN: "NatPort",
41 "handler": "no", 41 C.PI_HANDLER: "no",
42 "description": _("""Automatic NAT port mapping using UPnP"""), 42 C.PI_DESCRIPTION: _("""Automatic NAT port mapping using UPnP"""),
43 } 43 }
44 44
45 STARTING_PORT = 6000 # starting point to automatically find a port 45 STARTING_PORT = 6000 # starting point to automatically find a port
46 DEFAULT_DESC = u'SaT port mapping' # we don't use "à" here as some bugged NAT don't manage charset correctly 46 DEFAULT_DESC = u'SaT port mapping' # we don't use "à" here as some bugged NAT don't manage charset correctly
47 47