Ver código fonte

Merge pull request #1792 from zxlhhyccc/custom

luci-app-ssr-plus: Fix typo erro.
zxl hhyccc 1 mês atrás
pai
commit
00b380d8f8

+ 4 - 4
.github/workflows/multi-arch-test-build.yml

@@ -46,7 +46,7 @@ jobs:
           docker-images: true
           swap-storage: true
 
-      - uses: actions/checkout@v5
+      - uses: actions/checkout@v3
         with:
           fetch-depth: 0
 
@@ -80,7 +80,7 @@ jobs:
           echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
 
       - name: Build
-        uses: immortalwrt/gh-action-sdk@v5
+        uses: immortalwrt/gh-action-sdk@v4
         env:
           ARCH: ${{ matrix.arch }}
           FEEDNAME: packages_ci
@@ -126,7 +126,7 @@ jobs:
           cat PKG-INFO
 
       - name: Store packages
-        uses: actions/upload-artifact@v5
+        uses: actions/upload-artifact@v4
         with:
           name: ${{env.ARCHIVE_NAME}}-packages
           path: |
@@ -136,7 +136,7 @@ jobs:
             PKG-INFO
 
       - name: Store logs
-        uses: actions/upload-artifact@v5
+        uses: actions/upload-artifact@v4
         with:
           name: ${{env.ARCHIVE_NAME}}-logs
           path: |

+ 2 - 2
luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm

@@ -381,9 +381,9 @@ function import_ssr_url(btn, urlname, sid) {
 			switch (params.get("type")) {
 			case "ws":
 				if (params.get("security") !== "tls") {
-					setElementValue('cbid.shadowsocksr.' + sid + '.ws_host', params.get("host") ? decodeURIComponent(params.get("host")) : "");
+					document.getElementsByName('cbid.shadowsocksr.' + sid + '.ws_host')[0].value = params.get("host") ? decodeURIComponent(params.get("host")) : "";
 				}
-				setElementValue('cbid.shadowsocksr.' + sid + '.ws_path', params.get("path") ? decodeURIComponent(params.get("path")) : "/");
+				document.getElementsByName('cbid.shadowsocksr.' + sid + '.ws_path')[0].value = params.get("path") ? decodeURIComponent(params.get("path")) : "/";
 				break;
 			case "httpupgrade":
 				if (params.get("security") !== "tls") {