rename RegisterInboundConnectionConfig to RegisterInboundConfig

This commit is contained in:
v2ray committed 2016-01-25 17:19:09 +01:00
1 parent 9fe8178e4a
commit 01ed2fa889
9 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -20,11 +20,11 @@ func registerConfigType(protocol string, proxyType string, creator ConfigObjectC
return nil
}
func RegisterInboundConnectionConfig(protocol string, creator ConfigObjectCreator) error {
func RegisterInboundConfig(protocol string, creator ConfigObjectCreator) error {
return registerConfigType(protocol, "inbound", creator)
}
func RegisterOutboundConnectionConfig(protocol string, creator ConfigObjectCreator) error {
func RegisterOutboundConfig(protocol string, creator ConfigObjectCreator) error {
return registerConfigType(protocol, "outbound", creator)
}
+2 -2
View File
@@ -16,7 +16,7 @@ func TestRegisterInboundConfig(t *testing.T) {
return true, nil
}
err := RegisterInboundConnectionConfig(protocol, creator)
err := RegisterInboundConfig(protocol, creator)
assert.Error(err).IsNil()
configObj, err := CreateInboundConnectionConfig(protocol, nil)
@@ -36,7 +36,7 @@ func TestRegisterOutboundConfig(t *testing.T) {
return true, nil
}
err := RegisterOutboundConnectionConfig(protocol, creator)
err := RegisterOutboundConfig(protocol, creator)
assert.Error(err).IsNil()
configObj, err := CreateOutboundConnectionConfig(protocol, nil)