配置格式更改为toml

This commit is contained in:
AceDroidX 2024-04-01 16:33:11 +08:00
parent e4b404a2aa
commit 96ee504a2d
3 changed files with 16 additions and 16 deletions

View File

@ -36,7 +36,7 @@ android {
buildConfigField("String", "FrpVersion", '"0.56.0"')
buildConfigField("String", "FrpcFileName", '"libfrpc.so"')
buildConfigField("String", "LogFileName", '"frpc.log"')
buildConfigField("String", "ConfigFileName", '"config.ini"')
buildConfigField("String", "ConfigFileName", '"config.toml"')
}
buildTypes {

View File

@ -1,15 +0,0 @@
[common]
server_addr =
server_port = 7000
dns_server = 114.114.114.114
# dont change this
log_file = ./frpc.log
[p2p_visitor]
type = xtcp
role = visitor
server_name =
sk =
bind_addr = 127.0.0.1
bind_port = 6000

View File

@ -0,0 +1,15 @@
serverAddr = ""
serverPort = 7000
dnsServer = "114.114.114.114"
[log]
level = "debug"
disablePrintColor = true
[[visitors]]
name = "p2p_visitor"
type = "xtcp"
serverName = ""
secretKey = ""
bindAddr = "127.0.0.1"
bindPort = 6000