mirror of
https://github.com/fatedier/frp.git
synced 2026-04-22 00:49:10 +08:00
frpc: support 'includes' in common section to include proxy configs in other files(#2421)
This commit is contained in:
@@ -290,12 +290,13 @@ func Test_LoadClientCommonConf(t *testing.T) {
|
||||
"var1": "123",
|
||||
"var2": "234",
|
||||
},
|
||||
UDPPacketSize: 1509,
|
||||
UDPPacketSize: 1509,
|
||||
IncludeConfigFiles: []string{},
|
||||
}
|
||||
|
||||
common, err := UnmarshalClientConfFromIni(testClientBytesWithFull)
|
||||
assert.NoError(err)
|
||||
assert.Equal(expected, common)
|
||||
assert.EqualValues(expected, common)
|
||||
}
|
||||
|
||||
func Test_LoadClientBasicConf(t *testing.T) {
|
||||
@@ -641,5 +642,4 @@ func Test_LoadClientBasicConf(t *testing.T) {
|
||||
assert.NoError(err)
|
||||
assert.Equal(proxyExpected, proxyActual)
|
||||
assert.Equal(visitorExpected, visitorActual)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user