Adding proxy support

Hey, We needed to add proxy support for our servers, I thought this might be a good add.

Thanks