waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Bug]: Unable to force ipv4 for AI requests / Proxy

Open valleedelisle opened this issue 9 months ago • 0 comments

Current Behavior

  • Context: corporate macos laptop using VPN and corporate proxy

When using the AI panel, I get this message:

OpenAI request, websocket connect error: write tcp [xxx::xxx:xxx:xxx:xxx%utun6]:56313->[2606:4700:3030::6815:4001]:443: write: socket is not connected

The utunX interfaces are created with Cisco Anyconnect and they have some unused IPv6 addresses on them. Even though I have root access, if I remove those IPv6 addresses, Cisco Anyconnect forces a reconnections and re-adds them.

I tried adding hostnames to my /etc/hosts file but it doesn't help at all.

Expected Behavior

Either have an option to disable IPv6 or obey /etc/hosts.

Steps To Reproduce

  1. On MacOS, have a NIC with IPv6 configured
  2. Block IPv6 traffic
  3. Chat with AI

Wave Version

0.11.3 (202505051800)

Platform

macOS

OS Version/Distribution

14.4.1 (23E224)

Architecture

arm64

Anything else?

No response

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

valleedelisle avatar May 20 '25 17:05 valleedelisle