Skip to content

Commit

Permalink
Update Config and Rust Sections for UserAgentFilter (#434)
Browse files Browse the repository at this point in the history
update user agent filter docs
  • Loading branch information
Megalonia authored Oct 5, 2023
1 parent bcccf9f commit 62ab4a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/cloud-edge/modules/user-agent-filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ tunnels:
example:
proto: http
addr: 80
ua_filter_allow: ["(foo/(\d)+.(\d)+)", "(bar/(\d)+.(\d)+)"]
ua_filter_deny: ["(buzz/(\d)+.(\d)+)"]
user_agent_filter:
allow: ["(foo/(\d)+.(\d)+)", "(bar/(\d)+.(\d)+)"]
deny: ["(buzz/(\d)+.(\d)+)"]
```
### Go SDK
Expand Down Expand Up @@ -92,8 +93,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
.connect()
.await?
.http_endpoint()
.allow_ua(r"foo/(\d)+")
.allow_ua(r"bar/(\d)+")
.allow_user_agent(r"foo/(\d)+")
.allow_user_agent(r"bar/(\d)+")
.deny_ua(r"buz/(\d)+")
.listen()
.await?;
Expand Down

1 comment on commit 62ab4a7

@vercel
Copy link

@vercel vercel bot commented on 62ab4a7 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ngrok-docs – ./

ngrok-docs-git-main-ngrok-dev.vercel.app
ngrok-docs-ngrok-dev.vercel.app
ngrok-docs.vercel.app

Please sign in to comment.