FIX create unknow name
This commit is contained in:
parent
dcb4c5cfc6
commit
574467e307
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/.env
|
||||
bin/*
|
||||
bin/*
|
||||
/.env2
|
||||
|
||||
@ -227,6 +227,11 @@ func (app *Application) Operation(op string, name, tipo, ipSTR,rID, comment stri
|
||||
if name == "" {
|
||||
panic("name cant be empty for op create")
|
||||
}
|
||||
if dn == "" {
|
||||
app.log.Debug("domains available", "domains", app.zoneRecords)
|
||||
dn = name
|
||||
}
|
||||
|
||||
fmt.Printf("domain name: %s", dn)
|
||||
rBody = app.GenerateReqBody(dn, tipo, app.publicIP.String(),comment, proxied)
|
||||
app.Create(*rBody)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user