| 59 | } |
| 60 | |
| 61 | void |
| 62 | TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED) |
| 63 | { |
| 64 | TSPluginRegistrationInfo info; |
| 65 | |
| 66 | info.plugin_name = PLUGIN_NAME; |
| 67 | info.vendor_name = "Apache Software Foundation"; |
| 68 | info.support_email = "dev@trafficserver.apache.org"; |
| 69 | |
| 70 | if (TSPluginRegister(&info) != TS_SUCCESS) { |
| 71 | TSError("[%s] Plugin registration failed", PLUGIN_NAME); |
| 72 | } |
| 73 | |
| 74 | TSHttpHookAdd(TS_HTTP_OS_DNS_HOOK, TSContCreate(thread_plugin, nullptr)); |
| 75 | } |
nothing calls this directly
no test coverage detected