github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/configuration/inbound/tuic.md (about)

     1  ### Structure
     2  
     3  ```json
     4  {
     5    "type": "tuic",
     6    "tag": "tuic-in",
     7    
     8    ... // Listen Fields
     9  
    10    "users": [
    11      {
    12        "name": "sekai",
    13        "uuid": "059032A9-7D40-4A96-9BB1-36823D848068",
    14        "password": "hello"
    15      }
    16    ],
    17    "congestion_control": "cubic",
    18    "auth_timeout": "3s",
    19    "zero_rtt_handshake": false,
    20    "heartbeat": "10s",
    21    "tls": {}
    22  }
    23  ```
    24  
    25  !!! warning ""
    26  
    27      QUIC, which is required by TUIC is not included by default, see [Installation](/#installation).
    28  
    29  ### Listen Fields
    30  
    31  See [Listen Fields](/configuration/shared/listen) for details.
    32  
    33  ### Fields
    34  
    35  #### users
    36  
    37  TUIC users
    38  
    39  #### users.uuid
    40  
    41  ==Required==
    42  
    43  TUIC user uuid
    44  
    45  #### users.password
    46  
    47  TUIC user password
    48  
    49  #### congestion_control
    50  
    51  QUIC congestion control algorithm
    52  
    53  One of: `cubic`, `new_reno`, `bbr`
    54  
    55  `cubic` is used by default.
    56  
    57  #### auth_timeout
    58  
    59  How long the server should wait for the client to send the authentication command
    60  
    61  `3s` is used by default.
    62  
    63  #### zero_rtt_handshake
    64  
    65  Enable 0-RTT QUIC connection handshake on the client side  
    66  This is not impacting much on the performance, as the protocol is fully multiplexed  
    67  
    68  !!! warning ""
    69      Disabling this is highly recommended, as it is vulnerable to replay attacks.
    70      See [Attack of the clones](https://blog.cloudflare.com/even-faster-connection-establishment-with-quic-0-rtt-resumption/#attack-of-the-clones)
    71  
    72  #### heartbeat
    73  
    74  Interval for sending heartbeat packets for keeping the connection alive
    75  
    76  `10s` is used by default.
    77  
    78  #### tls
    79  
    80  ==Required==
    81  
    82  TLS configuration, see [TLS](/configuration/shared/tls/#inbound).