diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6541242..8accb5b 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -52,10 +52,10 @@ jobs: go-version: 'stable' - name: Build and Release - run: | - mkdir -p bin - cd cmd - CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} -v -ldflags="-extldflags=-static" . + run: | + mkdir -p bin + cd cmd + CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }} -v -ldflags="-extldflags=-static" . - name: Upload New Assets run: | @@ -74,6 +74,7 @@ jobs: matrix: goos: [windows, freebsd, openbsd, linux, darwin] goarch: [amd64, 386] + goarm: [ "", "-arm7", "-arm6", "-arm5" ] exclude: - goarch: 386 goos: darwin diff --git a/README.md b/README.md index 973ca5e..2476a53 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ## 使用 -更新时间:2024.05.01 +更新时间:2024.05.02 ```shell curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | sh diff --git a/backtrace/asn.go b/backtrace/asn.go index 05ed36f..3746e75 100644 --- a/backtrace/asn.go +++ b/backtrace/asn.go @@ -120,9 +120,12 @@ func trace(ch chan Result, i int, cmin2 []string) { } } } + if tempText == (fmt.Sprintf("%v ", names[i]) + fmt.Sprintf("%-15s ", ips[i])) { + tempText += fmt.Sprintf("%v", Red("检测不到已知线路的ASN")) + } ch <- Result{i, tempText} } else { - s := fmt.Sprintf("%v %-15s %v", names[i], ips[i], Red("检测不到ASN")) + s := fmt.Sprintf("%v %-15s %v", names[i], ips[i], Red("检测不到回程路由节点的IP地址")) ch <- Result{i, s} } }