obfsvpn in proxy mode segfaults
pea@peabox:obfsvpn ./run-backend.sh
++ pwd
+ go run ./cmd/server --addr 127.0.0.1 --port 4430 --remote 127.0.0.1:8443 --state /home/pea/projects/leap/obfsvpn/state -v
2025/01/22 13:25:21 Done. Key material written to: /home/pea/projects/leap/obfsvpn/state
2025/01/22 13:25:21 Using obfs4 config file: /home/pea/projects/leap/obfsvpn/state/obfs4_state.json
DEBUG 2025/01/22 13:25:21 kcp: false, hop: false, udp: false, quic: false
2025/01/22 13:25:21 Listening on 127.0.0.1:4430…
DEBUG 2025/01/22 13:25:24 accepted connection from 127.0.0.1:43550
2025/01/22 13:25:24 Dialing: 127.0.0.1:8443
2025/01/22 13:25:24 Obfs4 client: 127.0.0.1:43550
panic: interface conversion: net.Conn is nil, not *net.TCPConn
goroutine 13 [running]:
gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib.DialOr(...)
/home/pea/go/pkg/mod/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib@v1.4.0/pt.go:1037
0xacab.org/leap/obfsvpn/server.proxyConn({0x0?, 0x0?}, 0xc000154080, {0x9a2aa8, 0xc0000e0930}, 0xc000097740, 0xc000097770)
/home/pea/projects/leap/obfsvpn/server/tcpserver.go:168 +0x514
created by 0xacab.org/leap/obfsvpn/server.(*TCPServer).Start in goroutine 1
/home/pea/projects/leap/obfsvpn/server/tcpserver.go:117 +0x7f4
exit status 2
Desktop:
2025-01-22T13:25:24+01:00 WRN Could not fetch gateways error="Get \"http://localhost:8443/api/5/gateway\": EOF"
started with export LEAP_INTRODUCER_URL="obfsvpnintro://localhost:4430/?cert=sAaLYTa6kzJp%2B%2FLNY6Zqk8uj5DKpmMx1ROzUHOAOuZxLSEAkLk7WoC1BK86sTOTIzvEaMg&fqdn=localhost&kcp=0&auth=solitech_J3BhkafGwb7dePoZF31rKg%3D%3D"
pea@peabox:obfsvpn cat state/*
# obfs4 torrc client bridge line
#
# This file is an automatically generated bridge line based on
# the current obfs4proxy configuration. EDITING IT WILL HAVE
# NO EFFECT.
#
# Before distributing this Bridge, edit the placeholder fields
# to contain the actual values:
# <IP ADDRESS> - The public IP address of your obfs4 bridge.
# <PORT> - The TCP/IP port of your obfs4 bridge.
# <FINGERPRINT> - The bridge's fingerprint.
Bridge obfs4 <IP ADDRESS>:<PORT> <FINGERPRINT> cert=sAaLYTa6kzJp+/LNY6Zqk8uj5DKpmMx1ROzUHOAOuZxLSEAkLk7WoC1BK86sTOTIzvEaMg iat-mode=0
{"node-id":"b0068b6136ba933269fbf2cd63a66a93cba3e432","private-key":"d1fb5dc47c147f9c861eaaf696211066d9ae004cbd5895824b83ea07e33b6e73","public-key":"","drbg-seed":"35b7af78bba720d093131e39693507819ca8afb243031b2e0000000000000000","iat-mode":0}%