2024.05.02

This commit is contained in:
spiritlhl 2024-05-02 00:36:19 +00:00
parent ca5b639886
commit b4ac40dfc0
3 changed files with 10 additions and 6 deletions

View File

@ -55,7 +55,7 @@ jobs:
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" .
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

View File

@ -18,7 +18,7 @@
## 使用
更新时间2024.05.01
更新时间2024.05.02
```shell
curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | sh

View File

@ -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}
}
}