chore: change config example to default listen on 127.0.0.1 (fix #391)

This commit is contained in:
nadoo 2024-01-29 22:30:28 +08:00
parent 80a7d3b7fd
commit 6d2b1e95cc
2 changed files with 11 additions and 10 deletions

View File

@ -28,7 +28,7 @@ jobs:
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
check-latest: true check-latest: true
go-version-file: 'go.mod' go-version-file: 'go.mod'
@ -47,7 +47,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifact - Linux amd64 - name: Upload Artifact - Linux amd64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-linux-amd64 name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-linux-amd64
@ -55,7 +55,7 @@ jobs:
./dist/default_linux_amd64_v1/${{ env.APP_NAME }} ./dist/default_linux_amd64_v1/${{ env.APP_NAME }}
- name: Upload Artifact - Linux arm64 - name: Upload Artifact - Linux arm64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-linux-arm64 name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-linux-arm64
@ -63,7 +63,7 @@ jobs:
./dist/default_linux_arm64/${{ env.APP_NAME }} ./dist/default_linux_arm64/${{ env.APP_NAME }}
- name: Upload Artifact - Darwin arm64 - name: Upload Artifact - Darwin arm64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-darwin-arm64 name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-darwin-arm64
@ -71,7 +71,7 @@ jobs:
./dist/default_darwin_arm64/${{ env.APP_NAME }} ./dist/default_darwin_arm64/${{ env.APP_NAME }}
- name: Upload Artifact - Windows amd64 - name: Upload Artifact - Windows amd64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-windows-amd64 name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-windows-amd64

View File

@ -32,16 +32,17 @@ verbose=True
# different protocols. # different protocols.
# listen on 8443, serve as http/socks5 proxy on the same port. # listen on 8443, serve as http/socks5 proxy on the same port.
listen=:8443 # listen=:8443
listen=127.0.0.1:8443
# listen on 8448 as a ss server. # listen on 8448 as a ss server.
# listen=ss://AEAD_CHACHA20_POLY1305:pass@:8448 # listen=ss://AEAD_CHACHA20_POLY1305:pass@:8448
# listen on 8080 as a http proxy server. # listen on 8080 as a http proxy server.
listen=http://:8080 # listen=http://:8080
# listen on 1080 as a socks5 proxy server. # listen on 1080 as a socks5 proxy server.
listen=socks5://:1080 # listen=socks5://:1080
# listen on 1234 as vless proxy server. # listen on 1234 as vless proxy server.
# listen=vless://uuid@:1234 # listen=vless://uuid@:1234
@ -222,7 +223,7 @@ checkdisabledonly=false
# we can specify different upstream dns server in rule file for different destinations. # we can specify different upstream dns server in rule file for different destinations.
# Setup a dns forwarding server # Setup a dns forwarding server
dns=:53 # dns=:53
# global remote dns server (you can specify different dns server in rule file) # global remote dns server (you can specify different dns server in rule file)
dnsserver=8.8.8.8:53 dnsserver=8.8.8.8:53
@ -279,7 +280,7 @@ dnsrecord=www.example.com/2606:2800:220:1:248:1893:25c8:1946
# Specify additional forward rules. # Specify additional forward rules.
# #
# specify rules folder, so all *.rule files under this folder will be parsed as rule file # specify rules folder, so all *.rule files under this folder will be parsed as rule file
rules-dir=rules.d # rules-dir=rules.d
# #
# specify a rule file # specify a rule file
#rulefile=office.rule #rulefile=office.rule