Adding TCPKeepAlive to makeDataOpt (#1272)

This commit is contained in:
Malte Granderath 2021-06-22 09:41:30 +02:00 committed by GitHub
parent ce48a4b9ef
commit 595ee5aa98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -462,6 +462,8 @@ func makeDataOpt(code uint16) EDNS0 {
return new(EDNS0_PADDING)
case EDNS0EDE:
return new(EDNS0_EDE)
case EDNS0TCPKEEPALIVE:
return new(EDNS0_TCP_KEEPALIVE)
default:
e := new(EDNS0_LOCAL)
e.Code = code