mirror of
https://github.com/oneclickvirt/backtrace.git
synced 2025-02-23 01:15:40 +08:00
2024.05.02
This commit is contained in:
parent
ca5b639886
commit
b4ac40dfc0
9
.github/workflows/main.yaml
vendored
9
.github/workflows/main.yaml
vendored
@ -52,10 +52,10 @@ jobs:
|
|||||||
go-version: 'stable'
|
go-version: 'stable'
|
||||||
|
|
||||||
- name: Build and Release
|
- name: Build and Release
|
||||||
run: |
|
run: |
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
cd cmd
|
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
|
- name: Upload New Assets
|
||||||
run: |
|
run: |
|
||||||
@ -74,6 +74,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
goos: [windows, freebsd, openbsd, linux, darwin]
|
goos: [windows, freebsd, openbsd, linux, darwin]
|
||||||
goarch: [amd64, 386]
|
goarch: [amd64, 386]
|
||||||
|
goarm: [ "", "-arm7", "-arm6", "-arm5" ]
|
||||||
exclude:
|
exclude:
|
||||||
- goarch: 386
|
- goarch: 386
|
||||||
goos: darwin
|
goos: darwin
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
|
|
||||||
更新时间:2024.05.01
|
更新时间:2024.05.02
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | sh
|
curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | sh
|
||||||
|
@ -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}
|
ch <- Result{i, tempText}
|
||||||
} else {
|
} 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}
|
ch <- Result{i, s}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user