Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Be able to turn off UDP #34

Open
majek opened this issue Mar 13, 2018 · 0 comments
Open

Be able to turn off UDP #34

majek opened this issue Mar 13, 2018 · 0 comments

Comments

@majek
Copy link

majek commented Mar 13, 2018

In wake of recent memcached amplification problems
https://blog.cloudflare.com/memcrashed-major-amplification-attacks-from-port-11211/

it makes sense to disable UDP support.

The code of twemcache seem to be created in a way to require UDP binding always:

if (tcp_specified && !udp_specified) {

    if (tcp_specified && !udp_specified) {
        settings.udpport = settings.port;
    } else if (udp_specified && !tcp_specified) {
        settings.port = settings.udpport;
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant