http: use separate sockets for IPv4 and IPv6 (#221)

This commit is contained in:
Joakim Frostegård 2025-01-16 22:53:56 +01:00 committed by GitHub
parent 048c297fc7
commit 94e3af2463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 235 additions and 121 deletions

View file

@ -66,14 +66,14 @@ address_ipv4 = '127.0.0.1:3000'" > udp.toml
echo "log_level = 'debug'
[network]
address = '127.0.0.1:3004'" > http.toml
address_ipv4 = '127.0.0.1:3004'" > http.toml
./target/debug/aquatic http -c http.toml > "$HOME/http.log" 2>&1 &
# HTTP with TLS
echo "log_level = 'debug'
[network]
address = '127.0.0.1:3001'
address_ipv4 = '127.0.0.1:3001'
enable_tls = true
tls_certificate_path = './server.crt'
tls_private_key_path = './key.pk8'