diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diode ztna network.
https://diode.io/download
Other
66 stars 23 forks source link

Support bns names in bind, protected, private #59

Open dominicletz opened 3 years ago

dominicletz commented 3 years ago

Today bns names can be used in many places but not for example in publishing protected and private ports.

Affected commands:

diode -bind 8080:<some_address>:8080
diode publish -protected 8080,<some_address1>,<some_address2>
diode publish -private 8080,<some_address1>,<some_address2>
diode bns -transfer mydomain,<some_address1>

In all of these bns lookups should be performed. The code for the resolution is already present and can be reused in client.ResolveBNS(lookupName)