Fix: chrome crash when using SwitchyOmega by reject rule (#47)
* Fix: chrome crash when using SwitchyOmega by reject rule
This commit is contained in:
parent
913111dc2e
commit
ed3d198b2c
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func NewReject() *Reject {
|
||||||
type NopConn struct{}
|
type NopConn struct{}
|
||||||
|
|
||||||
func (rw *NopConn) Read(b []byte) (int, error) {
|
func (rw *NopConn) Read(b []byte) (int, error) {
|
||||||
return len(b), nil
|
return 0, io.EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rw *NopConn) Write(b []byte) (int, error) {
|
func (rw *NopConn) Write(b []byte) (int, error) {
|
||||||
|
|
Loading…
Reference in a new issue