r/opencode • u/sasreedit • 14d ago
Exclude local device/network access
I wish to exclude access to other connected devices on the same network.
According to docs, I simply execute the below line in Terminal? I'm assuming this is broad, right? I mean, this will restrict device connections by any other app/device? Or is this simply to exclude OpenCode from access?
export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:8080
export NO_PROXY=localhost,127.0.0.1,::1
1
Upvotes
View all comments
2
u/j-cruz_4698 14d ago
Exports apply to processes launched from that shell, not other apps/devices; they route proxy-aware HTTP(S), but don't block LAN access. A firewall can restrict it.