Skip to content

Instantly share code, notes, and snippets.

/*
A simple LD_PRELOAD hack to let you specify the source address
for all outbound connections or if you want to limit a process
to only listening on one IP
Copyright (C) 2005 Robert J. McKay <robert@mckay.com>
License: You can do whatever you want with it.
### Keybase proof
I hereby claim:
* I am orsonwang on github.
* I am orsonwang (https://keybase.io/orsonwang) on keybase.
* I have a public key whose fingerprint is 18EF 2805 C466 CD9D D8BE 9760 3545 1373 BDDE F51B
To claim this, I am signing this object: