1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-18 03:29:12 -04:00

prototype for reverse proxy

This commit is contained in:
Darien Raymond
2018-10-28 00:03:11 +02:00
parent 2d000dcdaa
commit 2020bbe606
10 changed files with 820 additions and 0 deletions

14
app/reverse/config.go Normal file
View File

@@ -0,0 +1,14 @@
package reverse
import (
"crypto/rand"
"io"
"v2ray.com/core/common/dice"
)
func (c *Control) FillInRandom() {
randomLength := dice.Roll(64)
c.Random = make([]byte, randomLength)
io.ReadFull(rand.Reader, c.Random)
}