mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-12 02:29:38 +02:00
[SMACK-213] - Add new algorithm to discover usable localhost
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8057 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
574cdab26f
commit
08ae96a721
4 changed files with 65 additions and 25 deletions
|
@ -0,0 +1,17 @@
|
|||
package org.jivesoftware.smackx.jingle.nat;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.net.NetworkInterface;
|
||||
import java.net.SocketException;
|
||||
import java.net.InetAddress;
|
||||
import java.net.DatagramSocket;
|
||||
|
||||
public class LocalhostTest extends TestCase {
|
||||
|
||||
public void testGetLocalhost() {
|
||||
System.out.println(BridgedResolver.getLocalHost());
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue