support udp type

This commit is contained in:
fatedier
2016-12-19 01:22:21 +08:00
parent adcb2c1ea5
commit f2999e3317
18 changed files with 556 additions and 76 deletions

View File

@@ -29,6 +29,13 @@ use_gzip = false
# connections will be established in advance, default value is zero
pool_count = 10
[dns]
type = udp
local_ip = 127.0.0.1
local_port = 53
use_encryption = true
use_gzip = true
# Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02, the domains are set in frps.ini
[web01]
type = http

View File

@@ -34,6 +34,12 @@ auth_token = 123
bind_addr = 0.0.0.0
listen_port = 6000
[dns]
type = udp
auth_token = 123
bind_addr = 0.0.0.0
listen_port = 53
[web01]
# if type equals http, vhost_http_port must be set
type = http