Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
企猫商务
frp
提交
1a11b28f
F
frp
项目概览
企猫商务
/
frp
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
frp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
1a11b28f
编写于
3月 19, 2021
作者:
B
bobo liu
提交者:
GitHub
3月 19, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
config: inline is NOT SUPPORTED in encoding/json (#2304)
上级
bed13d7e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
18 deletion
+18
-18
pkg/config/client.go
pkg/config/client.go
+1
-1
pkg/config/proxy.go
pkg/config/proxy.go
+13
-13
pkg/config/server.go
pkg/config/server.go
+1
-1
pkg/config/visitor.go
pkg/config/visitor.go
+3
-3
未找到文件。
pkg/config/client.go
浏览文件 @
1a11b28f
...
...
@@ -29,7 +29,7 @@ import (
// recommended to use GetDefaultClientConf instead of creating this object
// directly, so that all unspecified fields have reasonable default values.
type
ClientCommonConf
struct
{
auth
.
ClientConfig
`ini:",extends"
json:"inline"
`
auth
.
ClientConfig
`ini:",extends"`
// ServerAddr specifies the address of the server to connect to. By
// default, this value is "0.0.0.0".
...
...
pkg/config/proxy.go
浏览文件 @
1a11b28f
...
...
@@ -144,8 +144,8 @@ type BaseProxyConf struct {
Metas
map
[
string
]
string
`ini:"-" json:"metas"`
// TODO: LocalSvrConf => LocalAppConf
LocalSvrConf
`ini:",extends"
json:"inline"
`
HealthCheckConf
`ini:",extends"
json:"inline"
`
LocalSvrConf
`ini:",extends"`
HealthCheckConf
`ini:",extends"`
}
type
DomainConf
struct
{
...
...
@@ -155,8 +155,8 @@ type DomainConf struct {
// HTTP
type
HTTPProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
DomainConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
DomainConf
`ini:",extends"`
Locations
[]
string
`ini:"locations" json:"locations"`
HTTPUser
string
`ini:"http_user" json:"http_user"`
...
...
@@ -167,27 +167,27 @@ type HTTPProxyConf struct {
// HTTPS
type
HTTPSProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
DomainConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
DomainConf
`ini:",extends"`
}
// TCP
type
TCPProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
RemotePort
int
`ini:"remote_port" json:"remote_port"`
}
// TCPMux
type
TCPMuxProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
DomainConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
DomainConf
`ini:",extends"`
Multiplexer
string
`ini:"multiplexer"`
}
// STCP
type
STCPProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
Role
string
`ini:"role" json:"role"`
Sk
string
`ini:"sk" json:"sk"`
...
...
@@ -195,7 +195,7 @@ type STCPProxyConf struct {
// XTCP
type
XTCPProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
Role
string
`ini:"role" json:"role"`
Sk
string
`ini:"sk" json:"sk"`
...
...
@@ -203,14 +203,14 @@ type XTCPProxyConf struct {
// UDP
type
UDPProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
RemotePort
int
`ini:"remote_port" json:"remote_port"`
}
// SUDP
type
SUDPProxyConf
struct
{
BaseProxyConf
`ini:",extends"
json:"inline"
`
BaseProxyConf
`ini:",extends"`
Role
string
`ini:"role" json:"role"`
Sk
string
`ini:"sk" json:"sk"`
...
...
pkg/config/server.go
浏览文件 @
1a11b28f
...
...
@@ -29,7 +29,7 @@ import (
// recommended to use GetDefaultServerConf instead of creating this object
// directly, so that all unspecified fields have reasonable default values.
type
ServerCommonConf
struct
{
auth
.
ServerConfig
`ini:",extends"
json:"inline"
`
auth
.
ServerConfig
`ini:",extends"`
// BindAddr specifies the address that the server binds to. By default,
// this value is "0.0.0.0".
...
...
pkg/config/visitor.go
浏览文件 @
1a11b28f
...
...
@@ -52,15 +52,15 @@ type BaseVisitorConf struct {
}
type
SUDPVisitorConf
struct
{
BaseVisitorConf
`ini:",extends"
json:"inline"
`
BaseVisitorConf
`ini:",extends"`
}
type
STCPVisitorConf
struct
{
BaseVisitorConf
`ini:",extends"
json:"inline"
`
BaseVisitorConf
`ini:",extends"`
}
type
XTCPVisitorConf
struct
{
BaseVisitorConf
`ini:",extends"
json:"inline"
`
BaseVisitorConf
`ini:",extends"`
}
// DefaultVisitorConf creates a empty VisitorConf object by visitorType.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录