Преглед изворни кода

replace NewSmallBuffer with NewLocalBuffer

v2ray пре 9 година
родитељ
комит
3be5045dfc
1 измењених фајлова са 1 додато и 1 уклоњено
  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))
 }