Use STUN instead of curl to fetch the public IP address for Discord
RFC 5389 is a standard protocol that can be used for this instead of ip4.me. I may have gone overboard on the CSPRNG... It was fun though.
Showing
- src/Makefile 2 additions, 2 deletionssrc/Makefile
- src/d_clisrv.h 1 addition, 0 deletionssrc/d_clisrv.h
- src/d_netcmd.c 4 additions, 0 deletionssrc/d_netcmd.c
- src/discord.c 37 additions, 101 deletionssrc/discord.c
- src/i_tcp.c 8 additions, 0 deletionssrc/i_tcp.c
- src/m_swap.h 11 additions, 6 deletionssrc/m_swap.h
- src/stun.c 222 additions, 0 deletionssrc/stun.c
- src/stun.h 20 additions, 0 deletionssrc/stun.h
Loading
Please register or sign in to comment