Skip to content

Commit

Permalink
add port to example
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Oct 26, 2023
1 parent 23fedd6 commit f002b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ func (UnimplementedHost) GetResponseTrailerValues(context.Context, string) (valu
func (UnimplementedHost) SetResponseTrailerValue(context.Context, string, string) {}
func (UnimplementedHost) AddResponseTrailerValue(context.Context, string, string) {}
func (UnimplementedHost) RemoveResponseTrailer(context.Context, string) {}
func (UnimplementedHost) GetRemoteAddr(context.Context) string { return "1.1.1.1" }
func (UnimplementedHost) GetRemoteAddr(context.Context) string { return "1.1.1.1:12345" }
2 changes: 1 addition & 1 deletion api/handler/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const (
FuncSetStatusCode = "set_status_code"

// FuncGetRemoteAddr writes the RemoteAddr to memory if it isn't larger than
// BufLimit. The result is its length in bytes. Ex. "1.1.1.1"
// BufLimit. The result is its length in bytes. Ex. "1.1.1.1:12345"
//
// TODO: document on http-wasm-abi
FuncGetRemoteAddr = "get_remote_addr"
Expand Down

0 comments on commit f002b7e

Please sign in to comment.