mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-15 09:55:37 +08:00
申请证书可关闭cname跟随
更新可使用海外节点
This commit is contained in:
@@ -58,6 +58,11 @@ func NewSqlite(DbFile string, PreFix string) (*Sqlite, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_, err = s.Conn.Exec("PRAGMA busy_timeout = 5000;")
|
||||
if err != nil {
|
||||
s.Close()
|
||||
return nil, fmt.Errorf("设置PRAGMA busy_timeout失败: %w", err)
|
||||
}
|
||||
|
||||
return &s, nil
|
||||
}
|
||||
@@ -79,6 +84,7 @@ func (s *Sqlite) Connect() error {
|
||||
if err == nil {
|
||||
s.Conn = conn
|
||||
s.closed = false
|
||||
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user