mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Anonymize config data in all settings tab
This commit is contained in:
parent
950ac1a9ac
commit
3ec94e0a83
2 changed files with 24 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
<div class="cbi-map">
|
||||
<h2 name="content"><%:All router settings%></h2>
|
||||
<div class="cbi-section">
|
||||
<pre><%=luci.sys.exec("uci show")%></pre>
|
||||
<pre><%=luci.sys.exec("sh /bin/anonymous_config.sh")%></pre>
|
||||
</div>
|
||||
</div>
|
||||
<%+footer%>
|
||||
|
|
23
luci-app-openmptcprouter/root/bin/anonymous_config.sh
Executable file
23
luci-app-openmptcprouter/root/bin/anonymous_config.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci show | \
|
||||
sed -e "/password=/s/......$/xxxxxx/" \
|
||||
-e "/detected_public_ipv4=/s/......$/xxxxxx/" \
|
||||
-e "/detected_ss_ipv4=/s/......$/xxxxxx/" \
|
||||
-e "/detected_public_ipv6=/s/......$/xxxxxx/" \
|
||||
-e "/detected_ss_ipv6=/s/......$/xxxxxx/" \
|
||||
-e "/publicip=/s/......$/xxxxxx/" \
|
||||
-e "/\.host=/s/......$/xxxxxx/" \
|
||||
-e "/\.ip=/s/......$/xxxxxx/" \
|
||||
-e "/\.ipv6=/s/......$/xxxxxx/" \
|
||||
-e "/user_id=/s/......$/xxxxxx/" \
|
||||
-e "/openvpn\.omr\.remote=/s/......$/xxxxxx/" \
|
||||
-e "/shadowsocks-libev\.sss.*\.server=/s/......$/xxxxxx/" \
|
||||
-e "/shadowsocks-libev\.sss.*\.key=/s/......$/xxxxxx/" \
|
||||
-e "/external_ip=/s/......$/xxxxxx/" \
|
||||
-e "/obfs_host=/s/......$/xxxxxx/" \
|
||||
-e "/vmess_address=/s/......$/xxxxxx/" \
|
||||
-e "/vless_address=/s/......$/xxxxxx/" \
|
||||
-e "/vpn\.key=/s/......$/xxxxxx/" \
|
||||
-e "/vps\.key=/s/......$/xxxxxx/" \
|
||||
-e "/token=/s/............$/xxxxxx/"
|
Loading…
Add table
Add a link
Reference in a new issue