MCPcopy Index your code
hub / github.com/IrineSistiana/udpme

github.com/IrineSistiana/udpme @v0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.1 ↗ · + Follow
9 symbols 19 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

udpme

udpme = UDP must have EDNS0。从协议层面借助 EDNS0 过滤掉有问题的 UDP 报文。全平台可用。

原理: udpme 会发送带 EDNS0 的请求报文,然后过滤掉没有 EDNS0 的应答报文。如果服务器支持 EDNS0,则会回应 EDNS0。因此过滤掉没有 EDNS0 报文可以过滤掉某些有问题的(假的)回应。

命令参数

  -l string
        监听地址。(默认 "127.0.0.1:5353")
  -u string
        UDP 上游地址。支持自定义端口。必需支持 EDNS0。 (默认 "8.8.8.8")
  -t    快速测试上游是否支持 EDNS0。

使用

正常使用:

udpme -l 127.0.0.1:5353 -u 8.8.8.8

测试服务器是否支持 EDNS0:

打印 edns0 response received 说明支持。打印 response received without edns0 说明不支持。

udpme -u 8.8.8.8 -t

或者也可以用 dig +edns 测试。

> dig +edns cloudflare.com @8.8.8.8

; <<>> DiG 9.16.1-Ubuntu <<>> +edns cloudflare.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2173
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512   <-- 支持 EDNS0 的服务器应答中会有这行 
;; QUESTION SECTION:
;cloudflare.com.            IN  A

;; ANSWER SECTION:
cloudflare.com.     300 IN  A   104.16.132.229
cloudflare.com.     300 IN  A   104.16.133.229

;; Query time: 7 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Mar 15 01:42:53 UTC 2022
;; MSG SIZE  rcvd: 75

Core symbols most depended-on inside this repo

Shape

Function 6
Method 2
Struct 1

Languages

Go100%

Modules by API surface

upstream.go6 symbols
udpme.go3 symbols

For agents

$ claude mcp add udpme \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page