Remove compatibility code

The minimum support go version is already 1.18
This commit is contained in:
yuhan6665 2022-09-15 22:16:29 -04:00
parent 84537e98c4
commit debd2e3ba8
11 changed files with 0 additions and 222 deletions

View file

@ -1,5 +1,3 @@
//go:build go1.18
package outbound
import (

View file

@ -1,15 +0,0 @@
//go:build !go1.18
package outbound
import (
"context"
"os"
"github.com/xtls/xray-core/common/net"
"github.com/xtls/xray-core/transport/internet/stat"
)
func (h *Handler) getUoTConnection(ctx context.Context, dest net.Destination) (stat.Connection, error) {
return nil, os.ErrInvalid
}