Giter Club home page Giter Club logo

Comments (8)

davrodpin avatar davrodpin commented on May 24, 2024 1

Oh so I should downgrade in the meantime until master is fixed?

Yes, please :)

from mole.

prologic avatar prologic commented on May 24, 2024

Checking out the code and updating to master and rebuilding/reinstalling from source results int he same error; so I suspect this is a bug currently in master.

from mole.

prologic avatar prologic commented on May 24, 2024

Logging the value of app.KeepAliveInterval shows:

INFO[0002] t.KeepAliveInterval: #0s

For some reason this is either getting set to 0s or is the zero value of time.Duration

from mole.

prologic avatar prologic commented on May 24, 2024

I'm sort of at a loss here :/

$ sift KeepAliveInterval
cli/cli.go:34:	KeepAliveInterval time.Duration
cli/cli.go:62:	f.DurationVar(&c.KeepAliveInterval, "keep-alive-interval", 10*time.Second, "(optional) time interval for keep alive packets to be sent")
tunnel/tunnel.go:125:	// KeepAliveInterval is the time period used to send keep alive packets to
tunnel/tunnel.go:127:	KeepAliveInterval time.Duration
tunnel/tunnel.go:300:	ticker := time.NewTicker(t.KeepAliveInterval)
tunnel/tunnel_test.go:352:	tun.KeepAliveInterval = 10 * time.Second
cmd/mole/main.go:276:	log.Infof("t.KeepAliveInterval: #%v", app.KeepAliveInterval)
cmd/mole/main.go:278:	t.KeepAliveInterval = app.KeepAliveInterval

Inspecting the code and debugging it a little bit shows that we are missing t.KeepAliveInterval from app.KeepAliveInterface which should be set from the f.DurationVar(&c.KeepAliveInterval on L62 of cli/cli.go

from mole.

davrodpin avatar davrodpin commented on May 24, 2024

from mole.

prologic avatar prologic commented on May 24, 2024

Sure. Nothing too special here:

[tunnels]
  [tunnels.nightly]
    local = ["127.0.0.1:4646"]
    remote = [":4646"]
    server = "nightly"
    key = ""
    verbose = false
    help = false
    version = false
    detach = false

It was created with mole -alias ... obviously. I've not touched it.

from mole.

davrodpin avatar davrodpin commented on May 24, 2024

@prologic, I am able to reproduce the issue.

mole 0.4.0 is free from this bug.

from mole.

prologic avatar prologic commented on May 24, 2024

Oh so I should downgrade in the meantime until master is fixed?

from mole.

Related Issues (20)

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.