| 1776 if (ip == NULL) { |
1776 if (ip == NULL) { |
| 1777 /* Attempt to get the IP from a NAT device using NAT-PMP */ |
1777 /* Attempt to get the IP from a NAT device using NAT-PMP */ |
| 1778 ip = purple_pmp_get_public_ip(); |
1778 ip = purple_pmp_get_public_ip(); |
| 1779 if (ip == NULL) { |
1779 if (ip == NULL) { |
| 1780 /* Just fetch the IP of the local system */ |
1780 /* Just fetch the IP of the local system */ |
| 1781 ip = purple_network_get_local_system_ip(-1); |
1781 ip = purple_network_get_local_system_ip(); |
| 1782 } |
1782 } |
| 1783 } |
1783 } |
| 1784 } |
1784 } |
| 1785 } |
1785 } |
| 1786 else |
1786 else |