mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
rename regex field to request, increase db field size to 1024 bytes
This commit is contained in:
parent
4c305f967f
commit
1302a89c44
4 changed files with 8 additions and 8 deletions
|
|
@ -48,7 +48,7 @@ impl Proxy {
|
|||
for r in rules {
|
||||
b.push(Rule {
|
||||
is_enabled: r.is_enabled,
|
||||
regex: r.regex,
|
||||
request: r.request,
|
||||
url: r.url,
|
||||
});
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ impl Proxy {
|
|||
pub fn matches(&self, request: &Uri) -> Option<ProxyResolver> {
|
||||
for rule in self.rule.borrow().iter().filter(|r| r.is_enabled) {
|
||||
if gtk::glib::Regex::match_simple(
|
||||
&rule.regex,
|
||||
&rule.request,
|
||||
request.to_str(),
|
||||
gtk::glib::RegexCompileFlags::DEFAULT,
|
||||
gtk::glib::RegexMatchFlags::DEFAULT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue