From f6743d4d21a69b07f9310ba525d86b20bcc9a7fb Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Sun, 25 Nov 2018 17:00:11 +0800 Subject: [PATCH] Fix: chrome crash when using SwitchyOmega by reject rule (#47) * Fix: chrome crash when using SwitchyOmega by reject rule --- adapters/outbound/reject.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/outbound/reject.go b/adapters/outbound/reject.go index ae26022..5a5357c 100644 --- a/adapters/outbound/reject.go +++ b/adapters/outbound/reject.go @@ -50,7 +50,7 @@ func NewReject() *Reject { type NopConn struct{} func (rw *NopConn) Read(b []byte) (int, error) { - return len(b), nil + return 0, io.EOF } func (rw *NopConn) Write(b []byte) (int, error) {