mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-14 10:00:34 +00:00
06dc4cf8bd
https://github.com/XTLS/Xray-core/pull/5657#issuecomment-4016760602 https://github.com/XTLS/Xray-core/pull/5657#issuecomment-4052921628
20 lines
389 B
Go
20 lines
389 B
Go
package salamander
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
func (c *Config) UDP() {
|
|
}
|
|
|
|
func (c *Config) WrapPacketConnClient(raw net.PacketConn, level int, levelCount int) (net.PacketConn, error) {
|
|
return NewConnClient(c, raw)
|
|
}
|
|
|
|
func (c *Config) WrapPacketConnServer(raw net.PacketConn, level int, levelCount int) (net.PacketConn, error) {
|
|
return NewConnServer(c, raw)
|
|
}
|
|
|
|
func (c *Config) HeaderConn() {
|
|
}
|