SVLAVR
2026-11-24 18:20:46 +00:00
committed by RPRXX
co-authored by Codex RPRX
parent 15b2499d34
commit e17392a96e
64 changed files with 3107 additions and 3918 deletions
+22
View File
@@ -0,0 +1,22 @@
package reverse
import (
"crypto/rand"
"io"
"github.com/xtls/xray-core/common/dice"
"github.com/xtls/xray-core/common/net"
)
func (c *Control) FillInRandom() {
randomLength := dice.Roll(64)
randomLength++
c.Random = make([]byte, randomLength)
io.ReadFull(rand.Reader, c.Random)
}
const internalDomain = "reverse"
func isInternalDomain(dest net.Destination) bool {
return dest.Address.Family().IsDomain() && dest.Address.Domain() == internalDomain
}