Ticket #91 (closed defect: fixed)
Ticket #89 did it wrong
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.6.0 "Hotspotify" |
| Version: | 0.5.2 "WifiFree" | Keywords: | |
| Cc: |
Description
The changes to fix ticket #89 http://dev.kryo.se/iodine/changeset/965 are wrong:
- users_get_first_ip() uses inet_ntoa() and returns
- tun_setip() gets passed the result as remoteip
- tun_setip() uses inet_ntoa() and therefore remoteip gets overwritten with inet_ntoa(net).
One solution would be to change
| tun_setmtu(mtu) != 0) { |
to
| tun_setmtu(mtu) != 0) { |
or even let users_get_first_ip() return with a strdup'ed value.
Change History
Note: See
TracTickets for help on using
tickets.

Commited to trunk in [974].