mirror of
https://github.com/AceDroidX/frp-Android.git
synced 2024-11-16 11:42:21 +08:00
配置格式更改为toml
This commit is contained in:
parent
e4b404a2aa
commit
96ee504a2d
|
@ -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 {
|
||||
|
|
|
@ -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
|
15
app/src/main/assets/config.toml
Normal file
15
app/src/main/assets/config.toml
Normal 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
|
Loading…
Reference in New Issue
Block a user