Skip to content

Errors compiling PortScanner #2

@rhinesj

Description

@rhinesj

It looks like a timeout field was added and the rest of the code wasn't updated to account for it.

go version go1.5.3 darwin/amd64

github.com/anvie/port-scanner

../../../../anvie/port-scanner/PortScanner.go:27: too few values in struct initializer
../../../../anvie/port-scanner/PortScanner.go:50: cannot use h.timeout (type int) as type time.Duration in argument to net.DialTimeout
../../../../anvie/port-scanner/PortScanner.go:82: cannot use h.timeout (type int) as type time.Duration in argument to net.DialTimeout
../../../../anvie/port-scanner/PortScanner.go:87: cannot use conn (type net.Conn) as type *net.TCPConn in return argument: need type assertion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions