Get your minecraft_server.1.12.2.jar
from the root of your server, download the last bundled jetty 4.1 version https://repo1.maven.org/maven2/io/netty/netty-all/4.1.68.Final/netty-all-4.1.68.Final.jar
Open your server jar with 7zip and navigate to minecraft_server.1.12.2.jar\io\netty\
open the netty jar file you downloaded and go to netty-all-4.1.68.Final.jar\io\netty\
back in the minecraft server jar delete these 6 folders
now simple copy the same 6 folders from the netty package into the minecraft jar
throw the jar back into the root of your server and you are done!
For anyone struggling to find the jar folder, the latest versions do not have it for some reason... If you grab 4.1.27 on https://javalibs.com/artifact/io.netty/netty-all, you can follow the steps normally; if you don't want that old of a version, you can go up to v68 before the jar portion disappears