Giter VIP home page Giter VIP logo

Comments (2)

Axaxin avatar Axaxin commented on June 3, 2024

And I found that the listening address changes every restart,
that means let's say if A side client restart, B side needs to renew the forwarding address to re-establish connection.

follow up:
I found a way to make listening address fixed, which is to get a seed/addr pair on nsh.nkn.org then fill -s parameter.
Is it supposed that the nTunnel client itself have this option natively built-in?

from nkn-tunnel.

yilunzhang avatar yilunzhang commented on June 3, 2024

And I found that the listening address changes every restart, that means let's say if A side client restart, B side needs to renew the forwarding address to re-establish connection.

Yes that's expected. If you pass a secret seed in, the address will be fixed. Otherwise a random one is generated on each start.

follow up: I found a way to make listening address fixed, which is to get a seed/addr pair on nsh.nkn.org then fill -s parameter. Is it supposed that the nTunnel client itself have this option natively built-in?

A secret seed is just an arbitrary 32-byte array (64 hex characters), you can use any ways to generate one. A few examples:

  • You can use nknc to generate a wallet and get secret seed
  • You can generate a wallet at wallet.nkn.org and get it using show secret seed.
  • You can even generate it at something like https://www.browserling.com/tools/random-hex

If we have such feature built-in into nkn tunnel, it will probably print out secret seed in stdout and will be recorded in bash history, which makes it not that secure... We will probably add it if we can think of a better way to handle the wallet I/O part.

from nkn-tunnel.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.