hvpn-node3/const.go
HeshamTB 8e798706e3 WIP: create new peers server-side
Creates a new peer server-side.
    - Gen keys
    - Allocate IP
    - Add to WG Link
    - Respond with a read wg config for the client to use
2024-03-27 09:28:13 +03:00

18 lines
300 B
Go

package hvpnnode3
import "net"
const (
CONTENT_JSON = "application/json"
CONTENT_OCTET = "application/octet-stream"
CONTENT_PLAIN_TEXT = "text/plain"
WG_CLIENT_MTU = 1380
)
var (
WG_CLIENT_DNS = []net.IP{
net.ParseIP("1.1.1.1"),
net.ParseIP("8.8.8.8"),
}
)