Hi there,

i developing a dynodes update client, for a mixed environment ipv4+ipv6 
dual stack. For this it would be best to send/update the public 
ipv6 instead of the temporary address.

For short

conn, _ := net.Dial("udp6", "[2001:db8::1]:80")
defer conn.Close()

localAddr := conn.LocalAddr().(*net.UDPAddr)
fmt.Printf("%v", localAddr)


gave me the temporary address.

In the Golang source 
<https://github.com/golang/net/blob/master/ipv6/defs_linux.go>  
IPV6_PREFER_SRC_PUBLIC 
/ sysIPV6_PREFER_SRC_PUBLIC Flag is defines according to rfc5014 
<https://tools.ietf.org/html/rfc5014#section-6> passing this flag should 
use the public IPv6
as source address. 

My problem is that i can't figure out, how and where i can set this flag. 
Did someone has in example for me.

Kind regards 

Marc

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to