.
This commit is contained in:
parent
49eddff2e5
commit
231fe4cb66
|
@ -3,8 +3,8 @@ package pgsql
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"loafle.com/overflow/collector/core/scan/service/matcher/packet"
|
"loafle.com/overflow/commons_go/matcher/packet"
|
||||||
"loafle.com/overflow/collector/discovery/types"
|
"loafle.com/overflow/commons_go/model/scaninfo"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -112,7 +112,7 @@ func (t *PostgreSQLMatcher) Packet(index int) *packet.Packet {
|
||||||
return t.packets[index]
|
return t.packets[index]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *PostgreSQLMatcher) IsError(index int, packet *packet.Packet, info *types.ServiceScanInfo) bool {
|
func (t *PostgreSQLMatcher) IsError(index int, packet *packet.Packet, info scaninfo.ServiceScanInfo) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ func (t *PostgreSQLMatcher) IsPrePacket() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *PostgreSQLMatcher) Match(index int, packet *packet.Packet, info *types.ServiceScanInfo) bool {
|
func (t *PostgreSQLMatcher) Match(index int, packet *packet.Packet, info scaninfo.ServiceScanInfo) bool {
|
||||||
|
|
||||||
if packet == nil {
|
if packet == nil {
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -2,7 +2,7 @@ package pgsql
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"loafle.com/overflow/collector/core/scan/service/matcher/packet"
|
"loafle.com/overflow/commons_go/matcher/packet"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user