chore: adjust pass to reject.go
This commit is contained in:
parent
27120fb0f5
commit
5fee0b5bf1
2 changed files with 10 additions and 10 deletions
|
@ -56,13 +56,3 @@ func NewCompatible() *Direct {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
func NewPass() *Direct {
|
||||
return &Direct{
|
||||
Base: &Base{
|
||||
name: "PASS",
|
||||
tp: C.Pass,
|
||||
udp: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,16 @@ func NewReject() *Reject {
|
|||
}
|
||||
}
|
||||
|
||||
func NewPass() *Reject {
|
||||
return &Reject{
|
||||
Base: &Base{
|
||||
name: "PASS",
|
||||
tp: C.Pass,
|
||||
udp: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
type nopConn struct{}
|
||||
|
||||
func (rw *nopConn) Read(b []byte) (int, error) {
|
||||
|
|
Loading…
Reference in a new issue