Prechádzať zdrojové kódy

replace NewSmallBuffer with NewLocalBuffer

v2ray 9 rokov pred
rodič
commit
3be5045dfc
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      proxy/blackhole/config.go

+ 1 - 1
proxy/blackhole/config.go

@@ -31,5 +31,5 @@ Content-Length: 0
 )
 
 func (this *HTTPResponse) WriteTo(writer v2io.Writer) {
-	writer.Write(alloc.NewSmallBuffer().Clear().AppendString(http403response))
+	writer.Write(alloc.NewLocalBuffer(512).Clear().AppendString(http403response))
 }