File tree 2 files changed +3
-2
lines changed
src/main/java/com/fasterxml/uuid
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ UUID anotherUuid = gen.generate();
76
76
If your machine has a standard IP networking setup, the ` Generators.egressTimeBasedGenerator ` (added in JUG 4.1)
77
77
factory method will try to determine which network interface corresponds to the default route for
78
78
all outgoing network traffic, and use that for creating a time based generator.
79
- This is likely a good choice for common usage scenarios if you want a version 1 UUID generator:
79
+ This is likely a good choice for common usage scenarios if you want a version 1 UUID generator, but unfortunately
80
+ is known not to work reliably on some platforms.
80
81
81
82
``` java
82
83
TimeBasedGenerator gen = Generators . egressTimeBasedGenerator();
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ public static EthernetAddress fromEgressInterface()
325
325
String roots = "abcdefghijklm" ;
326
326
int index = new Random ().nextInt (roots .length ());
327
327
String name = roots .charAt (index ) + ".root-servers.net" ;
328
- InetSocketAddress externalAddress = new InetSocketAddress (name , 0 );
328
+ InetSocketAddress externalAddress = new InetSocketAddress (name , 53 );
329
329
if (externalAddress .isUnresolved ()) {
330
330
externalAddress = new InetSocketAddress ("1.1.1.1" , 0 );
331
331
}
You can’t perform that action at this time.
0 commit comments