joel16 / SwitchIdent

An identity tool for the Nintendo Switch
GNU General Public License v3.0
77 stars 14 forks source link

Localhost IP is displayed in reverse #13

Open Randname666 opened 4 years ago

Randname666 commented 4 years ago

When flight mode has been turned on, the "IP" column in "Misc" page will show "0.0.0.127", which is in reverse. https://github.com/joel16/SwitchIdent/blob/26f850f334033a527d66e13774e10487a0d2f51a/source/menus.c#L121 Not sure if the problem is in gethostname(char[] hostname, int hostname_size).