Program to determine the source routing ip for an external ip address
Go to file
Renovate Bot de5018a1f1 Add renovate.json 2022-05-11 14:11:31 +02:00
.editorconfig Initial Commit 2021-06-14 09:53:26 +02:00
.gitignore Initial Commit 2021-06-14 09:53:26 +02:00
.golangci.yml Initial Commit 2021-06-14 09:53:26 +02:00
Dockerfile Initial Commit 2021-06-14 09:53:26 +02:00
LICENSE Initial Commit 2021-06-14 09:53:26 +02:00
Makefile Initial Commit 2021-06-14 09:53:26 +02:00
README.md Initial Commit 2021-06-14 09:53:26 +02:00
go.mod Initial Commit 2021-06-14 09:53:26 +02:00
go.sum Initial Commit 2021-06-14 09:53:26 +02:00
main.go Initial Commit 2021-06-14 09:53:26 +02:00
renovate.json Add renovate.json 2022-05-11 14:11:31 +02:00

README.md

getpsrc

getpsrc is a small programme to determine the src routing ip for an external ip.

getpsrc serves as an alternative to ip route get <ip> | awk ... because ip route get can return different output depending on the environment and therefore the construct is unsafe.