Skip to content

Commit

Permalink
make traffic_policy fit normal format
Browse files Browse the repository at this point in the history
  • Loading branch information
TheConcierge committed Aug 7, 2024
1 parent e123950 commit c86c7a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion __test__/connect.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ test("traffic policy", async (t) => {
addr: httpServer.listenTo,
authtoken: process.env["NGROK_AUTHTOKEN"],
proto: "http",
trafficPolicy: trafficPolicy,
traffic_policy: trafficPolicy,
});
const url = listener.url();

Expand Down
17 changes: 1 addition & 16 deletions index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ pub struct Config {
#[napi(js_name = "terminate_at")]
pub terminate_at: Option<String>,
/// The Traffic Policy to use for this endpoint.
#[napi(js_name = "traffic_policy")]
pub traffic_policy: Option<String>,
/// Whether to disable certificate verification for this listener
#[napi(js_name = "verify_upstream_tls")]
Expand Down

0 comments on commit c86c7a0

Please sign in to comment.