mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-01-18 03:07:02 +00:00
Allow saving invalid sites (#215)
Closes https://github.com/DefinedNet/mobile_nebula/issues/191 Nate would like us to be able to save an invalid site, as a way of saving partial progress and then fixing issues later on, so that's what this PR does, for both Android and iOS. To test, add a site, give it a name, and press save. You should be taken to a list of sites, including the newly created invalid site.
This commit is contained in:
parent
7cb1da2504
commit
c781ac4d91
2 changed files with 2 additions and 5 deletions
|
@ -95,9 +95,6 @@ class SiteList(context: Context) {
|
|||
try {
|
||||
val site = Site(context, siteDir)
|
||||
|
||||
// Make sure we can load the private key
|
||||
site.getKey(context)
|
||||
|
||||
// Make sure we can load the DN credentials if managed
|
||||
if (site.managed) {
|
||||
site.getDNCredentials(context)
|
||||
|
|
|
@ -397,8 +397,8 @@ struct IncomingSite: Codable {
|
|||
var id: String
|
||||
var staticHostmap: Dictionary<String, StaticHosts>
|
||||
var unsafeRoutes: [UnsafeRoute]?
|
||||
var cert: String
|
||||
var ca: String
|
||||
var cert: String?
|
||||
var ca: String?
|
||||
var lhDuration: Int
|
||||
var port: Int
|
||||
var mtu: Int?
|
||||
|
|
Loading…
Reference in a new issue