wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
7.28k stars 1.17k forks source link

use getaddrinfo() to parse address #433

Closed HiGarfield closed 2 years ago

HiGarfield commented 2 years ago

simplify implementation and support hostname as address

Note: do not use static linking in compilation after this commit, since getaddrinfo() causes problems with static linking. Ref: [1] https://stackoverflow.com/questions/2725255/create-statically-linked-binary-that-uses-getaddrinfo [2] https://www.linuxquestions.org/questions/programming-9/glibc-warning-concerning-use-of-getaddrinfo-in-static-library-734169