Warp: fix firmware selection
This commit is contained in:
parent
9b78bd2acf
commit
33e86628ed
3 changed files with 3 additions and 2 deletions
|
|
@ -468,6 +468,7 @@ func (c *CmdConfigure) processParams(templateItem *templates.Template, deviceCat
|
|||
if usageFilter != "" {
|
||||
additionalConfig[param.Name] = usageFilter.String()
|
||||
}
|
||||
|
||||
default:
|
||||
if !c.advancedMode && param.Advanced {
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ func (c *CmdConfigure) flowNewConfigFile() {
|
|||
fmt.Println(c.localizedString("File_SaveSuccess", localizeMap{"FileName": filename}))
|
||||
}
|
||||
|
||||
// configureDevices asks device specfic questions
|
||||
// configureDevices asks device specific questions
|
||||
func (c *CmdConfigure) configureDevices(deviceCategory DeviceCategory, askAdding, askMultiple bool) []device {
|
||||
var devices []device
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ params:
|
|||
- name: timeout
|
||||
default: 30s
|
||||
render: |
|
||||
type:{{ if .fw2 }} warp-fw2 {{ else }} warp {{ end }}
|
||||
type: {{ if eq .fw2 "true" -}} warp-fw2 {{ else -}} warp {{ end }}
|
||||
broker: {{ .host }}:{{ .port }}
|
||||
{{- if .user }}
|
||||
user: {{ .user }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue