MCPcopy
hub / github.com/pyload/pyload / init

Method init

module/plugins/hooks/MultiHome.py:41–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 ("GammaC0de", "nitzo2001{AT]yahoo[DOT]com")]
40
41 def init(self):
42 self.interfaces = []
43 self.old_get_request = None
44
45 self.parse_interfaces(self.config.get('interfaces').split(";"))
46
47 if not self.interfaces:
48 self.parse_interfaces(
49 [self.pyload.config.get('download', 'interface')])
50 self.config.set('interfaces', self.to_config())
51
52 def to_config(self):
53 return ";".join(i.address for i in self.interfaces)

Callers

nothing calls this directly

Calls 5

parse_interfacesMethod · 0.95
to_configMethod · 0.95
splitMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected