Code Monkey home page Code Monkey logo

ayd's People

Contributors

macrat avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

fossabot

ayd's Issues

Can't use ping if arguments is only source

> .\ayd.exe -v
Ayd? version 0.6.0 (578fb33)

> cat target.txt
ping:localhost

> .\ayd.exe -1 source:target.txt
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x0 pc=0x586a46]

goroutine 12 [running]:
github.com/macrat/go-parallel-pinger.(*Pinger).Started(0x0, 0x0)
        github.com/macrat/[email protected]/pinger.go:179 +0x46
github.com/macrat/go-parallel-pinger.(*Pinger).Ping(0x0, 0x72f0c8, 0xc000206000, 0xc00020a060, 0x4, 0x1dcd6500, 0x0, 0x0, 0x0, 0x0, ...)
        github.com/macrat/[email protected]/pinger.go:350 +0x187
github.com/macrat/ayd/probe.PingProbe.Check(0xc0001a2cf0, 0x72f058, 0xc000206000, 0x728800, 0xc00006b2c0)
        github.com/macrat/ayd/probe/ping.go:77 +0x1fd
github.com/macrat/ayd/probe.SourceProbe.Check.func1(0xc00004f000, 0x728800, 0xc00006b2c0, 0xc0000198d0, 0x72bc00, 0xc0001a2cf0)
        github.com/macrat/ayd/probe/source.go:165 +0x62
created by github.com/macrat/ayd/probe.SourceProbe.Check
        github.com/macrat/ayd/probe/source.go:164 +0x27e
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x0 pc=0x586a46]

goroutine 10 [running]:
github.com/macrat/go-parallel-pinger.(*Pinger).Started(0x0, 0x0)
        github.com/macrat/[email protected]/pinger.go:179 +0x46
github.com/macrat/go-parallel-pinger.(*Pinger).Ping(0x0, 0x72f0c8, 0xc000280000, 0xc00028a030, 0x4, 0x1dcd6500, 0x0, 0x0, 0x0, 0x0, ...)
        github.com/macrat/[email protected]/pinger.go:350 +0x187
github.com/macrat/ayd/probe.PingProbe.Check(0xc000192e10, 0x72f058, 0xc000280000, 0x728800, 0xc00006b2c0)
        github.com/macrat/ayd/probe/ping.go:77 +0x1fd
github.com/macrat/ayd/probe.SourceProbe.Check.func1(0xc00004f000, 0x728800, 0xc00006b2c0, 0xc0000198d0, 0x72bc00, 0xc000192e10)
        github.com/macrat/ayd/probe/source.go:165 +0x62
created by github.com/macrat/ayd/probe.SourceProbe.Check
        github.com/macrat/ayd/probe/source.go:164 +0x27e

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.