don't check for 0 depth in android/net changes; different handling of IPv6...

don't check for 0 depth in android/net changes; different handling of IPv6 private/public preferrence
parent ebb63f51
......@@ -151,7 +151,7 @@ previous
: +my-addrs ( port o:addr -- )
+my-id
dup host:portv4 w! host:portv6 w!
o my-addr[] $[]# my-addr[] $[] ! ;
o my-addr[] >stack ;
: !my-addrs ( -- ) net2o:new-addr >o
global-ip6 tuck host:ipv6 $10 smove
......
......@@ -20,7 +20,7 @@ Defer addr-changed ' noop is addr-changed
also android also jni
:noname defers android-network
network-info dup IF ]xref
beacons-now! !!0depth!! addr-changed true
beacons-now! addr-changed true
THEN to connected? ;
is android-network
previous previous
......
......@@ -147,14 +147,12 @@ Forward .addr$
sockaddr1 port be-uw@ ;
: ipv6/pp ( sock -- sock )
[DEFINED] darwin [DEFINED] cygwin [ or 0= ] [IF]
[IFDEF] ipv6-public
config:port# @ IF
ipv6( dup ipv6-public )
ELSE
ipv6( dup ipv6-private )
THEN
[THEN]
[IFDEF] ipv6-public
config:port# @ IF
ipv6( dup ipv6-public )
ELSE
ipv6( dup ipv6-private )
THEN
[THEN]
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment