Chore: the default sniffing is changed to a standard port, and the sniffing result is only used for this connection.

This commit is contained in:
Skyxim
2022-08-21 08:43:57 +08:00
parent 6cfae6919f
commit ec318f1cc5
2 changed files with 3 additions and 4 deletions

View File

@ -977,7 +977,8 @@ func parseSniffer(snifferRaw RawSniffer) (*Sniffer, error) {
var ports []utils.Range[uint16]
if len(snifferRaw.Ports) == 0 {
ports = append(ports, *utils.NewRange[uint16](0, 65535))
ports = append(ports, *utils.NewRange[uint16](80, 80))
ports = append(ports, *utils.NewRange[uint16](443, 443))
} else {
for _, portRange := range snifferRaw.Ports {
portRaws := strings.Split(portRange, "-")