Skip to content

Commit

Permalink
allow_ua -> allow_user_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Megalonia committed Oct 5, 2023
1 parent 937ae67 commit f72be80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ngrok/src/config/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ mod test {
session: None,
options: Default::default(),
}
.allow_ua(ALLOW_AGENT)
.deny_ua(DENY_AGENT)
.allow_user_agent(ALLOW_AGENT)
.deny_user_agent(DENY_AGENT)
.allow_cidr(ALLOW_CIDR)
.deny_cidr(DENY_CIDR)
.proxy_proto(ProxyProto::V2)
Expand Down
2 changes: 1 addition & 1 deletion ngrok/src/online_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async fn http_headers() -> Result<(), Error> {
async fn user_agent() -> Result<(), Error> {
let tun = serve_http(
defaults,
|tun| tun.allow_ua("foo.*").deny_ua(".*"),
|tun| tun.allow_user_agent("foo.*").deny_user_agent(".*"),
hello_router(),
)
.await?;
Expand Down

0 comments on commit f72be80

Please sign in to comment.