mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 23:06:30 -05:00
actually follow redirect of UDP
This commit is contained in:
parent
41d89e6d1e
commit
125ef8372c
@ -90,7 +90,11 @@ func (this *DokodemoDoor) Start() error {
|
|||||||
|
|
||||||
func (this *DokodemoDoor) ListenUDP() error {
|
func (this *DokodemoDoor) ListenUDP() error {
|
||||||
this.udpServer = udp.NewUDPServer(this.meta, this.packetDispatcher)
|
this.udpServer = udp.NewUDPServer(this.meta, this.packetDispatcher)
|
||||||
udpHub, err := udp.ListenUDP(this.meta.Address, this.meta.Port, udp.ListenOption{Callback: this.handleUDPPackets})
|
udpHub, err := udp.ListenUDP(
|
||||||
|
this.meta.Address, this.meta.Port, udp.ListenOption{
|
||||||
|
Callback: this.handleUDPPackets,
|
||||||
|
ReceiveOriginalDest: this.config.FollowRedirect,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Dokodemo failed to listen on ", this.meta.Address, ":", this.meta.Port, ": ", err)
|
log.Error("Dokodemo failed to listen on ", this.meta.Address, ":", this.meta.Port, ": ", err)
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user