Skip to content

Unable to disable P2P connections as it is not possible to set DERP server stun addresses to empty #6791

@JoshVee

Description

@JoshVee

The docs indicate that you can disable P2P connections by setting --derp-server-stun-addresses \ CODER_DERP_SERVER_STUN_ADDRESSES to empty. This does not work.

      --derp-server-stun-addresses string-array, $CODER_DERP_SERVER_STUN_ADDRESSES (default: stun.l.google.com:19302)
          Addresses for STUN servers to establish P2P connections. Set empty to disable P2P connections.

There does not appear to be any way to set this configuration property to empty:

  • Setting the CODER_DERP_SERVER_STUN_ADDRESSES environment variable to empty results in the default value of stun.l.google.com:19302 being used
  • Setting the argument --derp-server-stun-addresses="" results in a parsing error: invalid argument "" for "--derp-server-stun-addresses" flag: EOF

Also, there appears to be a bug with parsing string-array environment variables. The value is appended to the default, rather than replaced. For example, CODER_DERP_SERVER_STUN_ADDRESSES="foobar:443" results in the following STUN addresses: [stun.l.google.com:19302, foobar:443]

Metadata

Metadata

Assignees

No one assigned

    Labels

    s1Bugs that break core workflows. Only humans may set this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions