Make scripts/objects lists use EvMore. Change EvMore to not justify by default.
This commit is contained in:
parent
b5aee2c41e
commit
69d85bd184
221 changed files with 2190 additions and 6810 deletions
|
|
@ -18,9 +18,7 @@ MSSP_VAR = b"\x01"
|
|||
MSSP_VAL = b"\x02"
|
||||
|
||||
# try to get the customized mssp info, if it exists.
|
||||
MSSPTable_CUSTOM = utils.variable_from_module(
|
||||
settings.MSSP_META_MODULE, "MSSPTable", default={}
|
||||
)
|
||||
MSSPTable_CUSTOM = utils.variable_from_module(settings.MSSP_META_MODULE, "MSSPTable", default={})
|
||||
|
||||
|
||||
class Mssp(object):
|
||||
|
|
@ -121,18 +119,10 @@ class Mssp(object):
|
|||
if utils.is_iter(value):
|
||||
for partval in value:
|
||||
varlist += (
|
||||
MSSP_VAR
|
||||
+ bytes(variable, "utf-8")
|
||||
+ MSSP_VAL
|
||||
+ bytes(partval, "utf-8")
|
||||
MSSP_VAR + bytes(variable, "utf-8") + MSSP_VAL + bytes(partval, "utf-8")
|
||||
)
|
||||
else:
|
||||
varlist += (
|
||||
MSSP_VAR
|
||||
+ bytes(variable, "utf-8")
|
||||
+ MSSP_VAL
|
||||
+ bytes(value, "utf-8")
|
||||
)
|
||||
varlist += MSSP_VAR + bytes(variable, "utf-8") + MSSP_VAL + bytes(value, "utf-8")
|
||||
|
||||
# send to crawler by subnegotiation
|
||||
self.protocol.requestNegotiation(MSSP, varlist)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue