diff --git a/plugins/xui/index.py b/plugins/xui/index.py index 80f135d56..7a4207dac 100755 --- a/plugins/xui/index.py +++ b/plugins/xui/index.py @@ -154,7 +154,7 @@ def initdUinstall(): mw.execShell('systemctl disable x-ui') return 'ok' -def getMtproxyUrl(): +def getXuiInfo(): user = pSqliteDb('users') @@ -209,7 +209,7 @@ if __name__ == "__main__": print(getServiceFile()) elif func == 'conf_env': print(getConfEnv()) - elif func == 'url': - print(getMtproxyUrl()) + elif func == 'info': + print(getXuiInfo()) else: print('error') diff --git a/plugins/xui/install.sh b/plugins/xui/install.sh index 220bf5b75..4eea3388c 100755 --- a/plugins/xui/install.sh +++ b/plugins/xui/install.sh @@ -11,7 +11,7 @@ sysArch=`arch` sysName=`uname` -# cd /www/server/mdserver-web && python3 plugins/xui/index.py url +# cd /www/server/mdserver-web && python3 plugins/xui/index.py info # cd /www/server/mdserver-web/plugins/xui && /bin/bash install.sh install 1.0 VERSION=$2