http://bugs.winehq.org/show_bug.cgi?id=15711
--- Comment #8 from Erich Hoover ehoover@mines.edu 2009-10-01 18:44:24 --- Created an attachment (id=23874) --> (http://bugs.winehq.org/attachment.cgi?id=23874) Use the routing table if the local hostname returns the magic IP
Apparently this is a lot easier than I thought, Wine already uses the routing table information to build the list of adapters (this is nice because each Unix OS has a unique method of obtaining the routing table). Attached is a patch that uses the routing table for determining the IPs if gethostbyname("myself") returns the magic IP.