mirror of
https://github.com/djdevin/recnet-plugin.git
synced 2026-09-08 22:51:34 -07:00
unstable patch for 202312+
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
|
||||
int ShouldRedirect(const char *host);
|
||||
|
||||
// If host exactly matches a configured rewrite pair's <from>, writes <to> into out (up to outlen)
|
||||
// and returns 1; otherwise returns 0 and leaves out untouched.
|
||||
// Example: host "ns.rec.net", from "ns.rec.net", to "ns.recflare.net" -> "ns.recflare.net".
|
||||
int RewriteHost(const char *host, char *out, size_t outlen);
|
||||
Reference in New Issue
Block a user