misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-22 21:52:37 +01:00
commit 7c2dc38819
4 changed files with 43 additions and 31 deletions

View file

@ -6,14 +6,16 @@ import (
)
type SynScanEvent struct {
Host *network.Endpoint
Port int
Address string
Host *network.Endpoint
Port int
}
func NewSynScanEvent(h *network.Endpoint, port int) SynScanEvent {
func NewSynScanEvent(address string, h *network.Endpoint, port int) SynScanEvent {
return SynScanEvent{
Host: h,
Port: port,
Address: address,
Host: h,
Port: port,
}
}