Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@
<allownew>true</allownew>
<help>DNS servers to push as configuration payload (RFC4306 3.15 - Value 3 and 10). Accepts multiple IPv4/IPv6 addresses.</help>
</field>
<field>
<id>pool.domains</id>
<label>DNS Search Domain(s)</label>
<type>select_multiple</type>
<style>tokenize</style>
<allownew>true</allownew>
<help>DNS search domains to push as configuration payload. Accepts multiple domains.</help>
</field>
</form>
3 changes: 3 additions & 0 deletions src/opnsense/mvc/app/models/OPNsense/IPsec/Swanctl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@
<AsList>Y</AsList>
<ValidationMessage>Entry is not a valid IPv4 or IPv6 address.</ValidationMessage>
</dns>
<domains type="TextField">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also use ChatGPT frequently for coding, did it really suggest a TextField here?

Please add proper validation.
https://docs.opnsense.org/development/frontend/models_fieldtypes.html

<Required>N</Required>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a default and can be removed

</domains>
</Pool>
</Pools>
<VTIs>
Expand Down