mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-28 20:05:48 -05:00
fix lint warnings
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
v2net "v2ray.com/core/common/net"
|
||||
)
|
||||
|
||||
// GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
|
||||
func (v *Config) GetPredefinedAddress() v2net.Address {
|
||||
addr := v.Address.AsAddress()
|
||||
if addr == nil {
|
||||
|
||||
@@ -40,7 +40,7 @@ func TestDokodemoTCP(t *testing.T) {
|
||||
space.BindApp(dispatcher.APP_ID, dispatchers.NewDefaultDispatcher(space))
|
||||
ohm := outbound.New()
|
||||
ohm.SetDefaultHandler(
|
||||
freedom.NewFreedomConnection(
|
||||
freedom.New(
|
||||
&freedom.Config{},
|
||||
space,
|
||||
&proxy.OutboundHandlerMeta{
|
||||
@@ -111,7 +111,7 @@ func TestDokodemoUDP(t *testing.T) {
|
||||
space.BindApp(dispatcher.APP_ID, dispatchers.NewDefaultDispatcher(space))
|
||||
ohm := outbound.New()
|
||||
ohm.SetDefaultHandler(
|
||||
freedom.NewFreedomConnection(
|
||||
freedom.New(
|
||||
&freedom.Config{},
|
||||
space,
|
||||
&proxy.OutboundHandlerMeta{
|
||||
|
||||
Reference in New Issue
Block a user