Skip to content

Commit

Permalink
Allow saving invalid sites (#215)
Browse files Browse the repository at this point in the history
Closes #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.
  • Loading branch information
IanVS authored Jan 13, 2025
1 parent 7cb1da2 commit c781ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions ios/NebulaNetworkExtension/Site.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit c781ac4

Please sign in to comment.