keithw/mosh — pull request #287 by klenze (2012-06-13 12:23:49+00:00)
Title: UDP hole punching for partly firewalled servers

Hi Keith, I finally managed to get github to generate a pull request.

Most of the changes should already be described in my mail, I also added a string fw_hole_command which is read from some environment variable and meant to contain a shell line to get the server to dispatch another hole punching packet after client IP changes. (It is not used yet -- I'm not sure if it should be automatically run on some conditions or bound to a keyboard shortcut.)

I did not adapt the perl script yet but just wrote a minimal wrapper shell script (also included in the mail) to use the new hole-punching features.