mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
support cidr notation for --xff-src
, --ipa
, --*-ipa
the old `10.88.` syntax is still supported, translating to `10.88.0.0/16` also fix `--tftp-ipa` when optimizations are enabled
This commit is contained in:
parent
78919e65d6
commit
b377791be7
13 changed files with 103 additions and 44 deletions
|
@ -116,7 +116,7 @@ class Cfg(Namespace):
|
|||
ex = "dotpart dotsrch no_dhash no_fastboot no_rescan no_sendfile no_voldump re_dhash plain_ip"
|
||||
ka.update(**{k: True for k in ex.split()})
|
||||
|
||||
ex = "ah_cli ah_gen css_browser hist ipa_re js_browser no_forget no_hash no_idx nonsus_urls"
|
||||
ex = "ah_cli ah_gen css_browser hist js_browser no_forget no_hash no_idx nonsus_urls"
|
||||
ka.update(**{k: None for k in ex.split()})
|
||||
|
||||
ex = "hash_mt srch_time u2abort u2j"
|
||||
|
@ -242,6 +242,7 @@ class VHttpConn(object):
|
|||
self.freshen_pwd = 0.0
|
||||
self.hsrv = VHttpSrv(args, asrv, log)
|
||||
self.ico = None
|
||||
self.ipa_nm = None
|
||||
self.lf_url = None
|
||||
self.log_func = log
|
||||
self.log_src = "a"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue