You've already forked getidev
Compare commits
2 Commits
5f55a75aed
...
renovate/a
Author | SHA1 | Date | |
---|---|---|---|
2c3aac9432
|
|||
c7d8002cd2
|
@ -26,4 +26,4 @@ jobs:
|
||||
go-version: ${{ matrix.go }}
|
||||
- uses: golangci/golangci-lint-action@v8.0.0
|
||||
with:
|
||||
v2.3.1 # renovate: datasource=github-releases depName=golangci/golangci-lint
|
||||
version: v2.3.0 # renovate: datasource=github-releases depName=golangci/golangci-lint
|
||||
|
@ -26,7 +26,7 @@ jobs:
|
||||
GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||
GONOSUMDB: ${{ vars.GONOSUMDB }}
|
||||
GOPROXY: ${{ vars.GOPROXY }}
|
||||
uses: goreleaser/goreleaser-action@v6.3.0
|
||||
uses: goreleaser/goreleaser-action@v6.4.0
|
||||
with:
|
||||
version: v2.11.2 # renovate: datasource=github-releases depName=goreleaser/goreleaser
|
||||
args: release --clean
|
||||
|
7
main.go
7
main.go
@ -8,8 +8,6 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
var version string
|
||||
|
||||
func main() {
|
||||
ips := os.Args[1:]
|
||||
switch {
|
||||
@ -34,7 +32,10 @@ func main() {
|
||||
|
||||
for _, addr := range addrs {
|
||||
if strings.Split(addr.String(), "/")[0] == ip {
|
||||
fmt.Fprintln(os.Stdout, iface.Name)
|
||||
_, err = fmt.Fprintln(os.Stdout, iface.Name)
|
||||
if err != nil {
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user