mirror of
https://github.com/fatedier/frp.git
synced 2026-03-21 01:09:27 +08:00
support udp type
This commit is contained in:
@@ -130,7 +130,7 @@ func LoadConf(confFile string) (err error) {
|
||||
proxyClient.Type = "tcp"
|
||||
tmpStr, ok = section["type"]
|
||||
if ok {
|
||||
if tmpStr != "tcp" && tmpStr != "http" && tmpStr != "https" {
|
||||
if tmpStr != "tcp" && tmpStr != "http" && tmpStr != "https" && tmpStr != "udp" {
|
||||
return fmt.Errorf("Parse conf error: proxy [%s] type error", proxyClient.Name)
|
||||
}
|
||||
proxyClient.Type = tmpStr
|
||||
|
||||
Reference in New Issue
Block a user