mirror of https://github.com/fatedier/frp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
740 B
39 lines
740 B
package consts
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
|
|
"github.com/fatedier/frp/test/e2e/pkg/port"
|
|
)
|
|
|
|
const (
|
|
TestString = "frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet."
|
|
|
|
DefaultTimeout = 2 * time.Second
|
|
)
|
|
|
|
var (
|
|
PortServerName string
|
|
PortClientAdmin string
|
|
|
|
DefaultServerConfig = `
|
|
[common]
|
|
bind_port = {{ .%s }}
|
|
log_level = trace
|
|
`
|
|
|
|
DefaultClientConfig = `
|
|
[common]
|
|
server_port = {{ .%s }}
|
|
log_level = trace
|
|
`
|
|
)
|
|
|
|
func init() {
|
|
PortServerName = port.GenName("Server")
|
|
PortClientAdmin = port.GenName("ClientAdmin")
|
|
DefaultServerConfig = fmt.Sprintf(DefaultServerConfig, port.GenName("Server"))
|
|
DefaultClientConfig = fmt.Sprintf(DefaultClientConfig, port.GenName("Server"))
|
|
}
|