Parcourir la source

replace NewSmallBuffer with NewLocalBuffer

v2ray il y a 9 ans
Parent
commit
3be5045dfc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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))
 }