* fix: prevent duplicate call link detection (#23) Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local> * bot improvements (#25) Co-authored-by: Maksim <maksim@MBP-Maksim.lan> * headless vk video creator * add scroll to logs * allow peer reconnection * add todo about topology changes, kick stale peer to prevent SFU topology * unified relay for headless * remove relay binaries, extend build-go.sh to build them * refactor constants * limit headless resource usage * nuke everyone and yourself at sfu topology changes * add headless for creator * save bot enabled state * increment release version --------- Co-authored-by: Nevenuga <80585376+Nevenuga@users.noreply.github.com> Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local> Co-authored-by: Maksim <maksim@MBP-Maksim.lan> Co-authored-by: kulikov <user@Mac.lan>
25 lines
582 B
Go
25 lines
582 B
Go
package socks
|
|
|
|
const (
|
|
Ver = 0x05
|
|
CmdTCP = 0x01
|
|
CmdUDP = 0x03
|
|
AtypIPv4 = 0x01
|
|
AtypDomain = 0x03
|
|
AtypIPv6 = 0x04
|
|
|
|
HandshakeBuf = 258
|
|
UDPBufSize = 4096
|
|
RTPBufSize = 65536
|
|
VP8BufSize = 900
|
|
)
|
|
|
|
var (
|
|
NoAuth = []byte{Ver, 0x00}
|
|
OK = []byte{Ver, 0x00, 0x00, AtypIPv4, 0, 0, 0, 0, 0, 0}
|
|
ConnFail = []byte{Ver, 0x05, 0x00, AtypIPv4, 0, 0, 0, 0, 0, 0}
|
|
CmdErr = []byte{Ver, 0x07, 0x00, AtypIPv4, 0, 0, 0, 0, 0, 0}
|
|
AddrErr = []byte{Ver, 0x08, 0x00, AtypIPv4, 0, 0, 0, 0, 0, 0}
|
|
GenFail = []byte{Ver, 0x01, 0x00, AtypIPv4, 0, 0, 0, 0, 0, 0}
|
|
)
|