You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by jpeach <gi...@git.apache.org> on 2016/11/03 04:42:44 UTC

[GitHub] trafficserver pull request #1127: TS-4990: Support new apis in ts_lua.

Github user jpeach commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1127#discussion_r86285707
  
    --- Diff: doc/admin-guide/plugins/ts_lua.en.rst ---
    @@ -1424,6 +1460,38 @@ We will get the output:
     
     `TOP <#ts-lua-plugin>`_
     
    +ts.server_request.server_addr.set_addr
    +--------------------------------------
    +**syntax:** *ts.server_request.server_addr.set_addr()*
    +
    +**context:** no later than function @ TS_LUA_HOOK_OS_DNS hook point
    +
    +**description**: This function can be used to set socket address of the origin server.
    +
    +The ts.server_request.server_addr.set_addr function requires three inputs, ip is a string, port and family is number.
    +
    +Here is an example:
    +
    +::
    +
    +    function do_global_read_request()
    +        ts.server_request.server_addr.set_addr("192,168,231,17", 80, TS_LUA_AF_INET)
    --- End diff --
    
    Commas?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---