HeshamTB
8e798706e3
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
18 lines
300 B
Go
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"),
|
|
}
|
|
)
|