Skip to content

Hysteria2 connection link not generated #491

@Cid0r0v1ch

Description

@Cid0r0v1ch

Describe the bug

After creating a Hysteria2 inbound, the generated client connection link/config is incomplete.

To Reproduce

Steps to reproduce the behavior:

Create a new Hysteria2 inbound
Enable TLS
Configure ALPN and masquerade settings
Save and restart the service
Expected behavior
Open the generated host/client connection section
The system should correctly display:

connection host/domain
hostname for connection

after the inbound is created.

Sanitized configuration example

{
  "tag": "HYSTERIA2 TCP TLS",
  "port": 8443,
  "protocol": "hysteria",
  "settings": {
    "version": 2,
    "clients": []
  },
  "streamSettings": {
    "network": "hysteria",
    "security": "tls",
    "tlsSettings": {
      "serverName": "<HIDDEN_DOMAIN>",
      "alpn": [
        "h3",
        "h2",
        "http/1.1"
      ],
      "fingerprint": "randomized",
      "enableSessionResumption": true,
      "curvePreferences": [
        "X25519",
        "CurveP256"
      ],
      "certificates": [
        {
          "certificateFile": "<HIDDEN_CERT_PATH>",
          "keyFile": "<HIDDEN_KEY_PATH>",
          "ocspStapling": 3600
        }
      ]
    },
    "hysteriaSettings": {
      "version": 2,
      "auth": "<HIDDEN_AUTH_1>",
      "udpIdleTimeout": 60,
      "masquerade": {
        "type": "string",
        "content": "GET /generate_204 HTTP/1.1\nHost: <MASKED_HOST>\nUser-Agent: okhttp/4.12.0"
      }
    }
  }
}
{
  "tag": "HYSTERIA2 TCP TLS MASK",
  "port": 8444,
  "protocol": "hysteria",
  "settings": {
    "version": 2,
    "clients": []
  },
  "streamSettings": {
    "network": "hysteria",
    "security": "tls",
    "tlsSettings": {
      "serverName": "<HIDDEN_DOMAIN>",
      "alpn": [
        "h3"
      ],
      "fingerprint": "randomized",
      "enableSessionResumption": true,
      "curvePreferences": [
        "X25519"
      ],
      "certificates": [
        {
          "certificateFile": "<HIDDEN_CERT_PATH>",
          "keyFile": "<HIDDEN_KEY_PATH>"
        }
      ]
    },
    "hysteriaSettings": {
      "version": 2,
      "auth": "<HIDDEN_AUTH_2>",
      "udpIdleTimeout": 60,
      "masquerade": {
        "type": "proxy"
      }
    }
  }
}
{
  "outbounds": [
    {
      "tag": "DIRECT",
      "protocol": "freedom"
    },
    {
      "tag": "BLOCK",
      "protocol": "blackhole"
    }
  ]
}

Machine details
OS: Ubuntu 24.04.3 LTS
Browser: Chrome
Panel version: latest available
Runtime versions: default installation
Additional context

Sensitive information has been removed from the configuration, including:

real domains
authentication tokens
certificate paths
IP addresses
personal identifiers

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions