github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/outbound/hysteria.md (about)

     1  ### Structure
     2  
     3  ```json
     4  {
     5    "type": "hysteria",
     6    "tag": "hysteria-out",
     7    
     8    "server": "127.0.0.1",
     9    "server_port": 1080,
    10    "up": "100 Mbps",
    11    "up_mbps": 100,
    12    "down": "100 Mbps",
    13    "down_mbps": 100,
    14    "obfs": "fuck me till the daylight",
    15    "auth": "",
    16    "auth_str": "password",
    17    "recv_window_conn": 0,
    18    "recv_window": 0,
    19    "disable_mtu_discovery": false,
    20    "network": "tcp",
    21    "tls": {},
    22    
    23    ... // Dial Fields
    24  }
    25  ```
    26  
    27  ### Fields
    28  
    29  #### server
    30  
    31  ==Required==
    32  
    33  The server address.
    34  
    35  #### server_port
    36  
    37  ==Required==
    38  
    39  The server port.
    40  
    41  #### up, down
    42  
    43  ==Required==
    44  
    45  Format: `[Integer] [Unit]` e.g. `100 Mbps, 640 KBps, 2 Gbps`
    46  
    47  Supported units (case sensitive, b = bits, B = bytes, 8b=1B):
    48  
    49      bps (bits per second)
    50      Bps (bytes per second)
    51      Kbps (kilobits per second)
    52      KBps (kilobytes per second)
    53      Mbps (megabits per second)
    54      MBps (megabytes per second)
    55      Gbps (gigabits per second)
    56      GBps (gigabytes per second)
    57      Tbps (terabits per second)
    58      TBps (terabytes per second)
    59  
    60  #### up_mbps, down_mbps
    61  
    62  ==Required==
    63  
    64  `up, down` in Mbps.
    65  
    66  #### obfs
    67  
    68  Obfuscated password.
    69  
    70  #### auth
    71  
    72  Authentication password, in base64.
    73  
    74  #### auth_str
    75  
    76  Authentication password.
    77  
    78  #### recv_window_conn
    79  
    80  The QUIC stream-level flow control window for receiving data.
    81  
    82  `15728640 (15 MB/s)` will be used if empty.
    83  
    84  #### recv_window
    85  
    86  The QUIC connection-level flow control window for receiving data.
    87  
    88  `67108864 (64 MB/s)` will be used if empty.
    89  
    90  #### disable_mtu_discovery
    91  
    92  Disables Path MTU Discovery (RFC 8899). Packets will then be at most 1252 (IPv4) / 1232 (IPv6) bytes in size.
    93  
    94  Force enabled on for systems other than Linux and Windows (according to upstream).
    95  
    96  #### network
    97  
    98  Enabled network
    99  
   100  One of `tcp` `udp`.
   101  
   102  Both is enabled by default.
   103  
   104  #### tls
   105  
   106  ==Required==
   107  
   108  TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
   109  
   110  ### Dial Fields
   111  
   112  See [Dial Fields](/configuration/shared/dial/) for details.