mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-01 21:30:27 +08:00
修复单例安装程序编译问题
This commit is contained in:
@@ -490,7 +490,7 @@ func (this *Instance) SetupDB() error {
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = models.SharedServerDAO.CreateServer(tx, 0, userId, serverconfigs.ServerTypeHTTPProxy, "First Site", "Created by system", []byte(`[{"name": "example.org", "type":"full"}]`), false, nil, httpConfigJSON, nil, nil, nil, nil, nil, webId, reverseProxyRefJSON, clusterId, nil, nil, nil, 0)
|
||||
_, err = models.SharedServerDAO.CreateServer(tx, 0, userId, serverconfigs.ServerTypeHTTPProxy, "First Site", "Created by system", []byte(`[{"name": "example.org", "type":"full"}]`), false, nil, httpConfigJSON, nil, nil, nil, nil, webId, reverseProxyRefJSON, clusterId, nil, nil, nil, 0)
|
||||
if err != nil {
|
||||
return fmt.Errorf("create server failed: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user