Akilan1999 / p2p-rendering-computation

p2p network to enable running distributed computation and rendering.
https://p2prc.akilan.io/
GNU General Public License v2.0
27 stars 9 forks source link

Cli for add server accepts ipv4 and ipv6 address #39

Closed Akilan1999 closed 3 years ago

Akilan1999 commented 3 years ago

Code snippet modified

var IpAddr p2p.IpAddress

        //Checking if the address is a ipv4
        // or ipv6 address
        ip4Orip6 := p2p.Ip4or6(AddServer)
        if ip4Orip6 == "version 6" {
            IpAddr.Ipv6 = AddServer
        } else {
            IpAddr.Ipv4 = AddServer
        }