Skip to content

Commit a00f1ab

Browse files
committed
fix version bump
1 parent 446b377 commit a00f1ab

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

core/startos/src/version/v0_3_6_alpha_13.rs

+5-34
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,33 @@ use exver::{PreReleaseSegment, VersionRange};
44
use imbl_value::json;
55

66
use super::v0_3_5::V0_3_0_COMPAT;
7-
use super::{v0_3_6_alpha_11, VersionT};
7+
use super::{v0_3_6_alpha_12, VersionT};
88
use crate::prelude::*;
99

1010
lazy_static::lazy_static! {
11-
static ref V0_3_6_alpha_12: exver::Version = exver::Version::new(
11+
static ref V0_3_6_alpha_13: exver::Version = exver::Version::new(
1212
[0, 3, 6],
13-
[PreReleaseSegment::String("alpha".into()), 12.into()]
13+
[PreReleaseSegment::String("alpha".into()), 13.into()]
1414
);
1515
}
1616

1717
#[derive(Clone, Copy, Debug, Default)]
1818
pub struct Version;
1919

2020
impl VersionT for Version {
21-
type Previous = v0_3_6_alpha_11::Version;
21+
type Previous = v0_3_6_alpha_12::Version;
2222
type PreUpRes = ();
2323

2424
async fn pre_up(self) -> Result<Self::PreUpRes, Error> {
2525
Ok(())
2626
}
2727
fn semver(self) -> exver::Version {
28-
V0_3_6_alpha_12.clone()
28+
V0_3_6_alpha_13.clone()
2929
}
3030
fn compat(self) -> &'static VersionRange {
3131
&V0_3_0_COMPAT
3232
}
3333
fn up(self, db: &mut Value, _: Self::PreUpRes) -> Result<(), Error> {
34-
let bindings: BTreeMap<u16, Value> = [(
35-
80,
36-
json!({
37-
"enabled": false,
38-
"options": {
39-
"preferredExternalPort": 80,
40-
"addSsl": {
41-
"preferredExternalPort": 443,
42-
"alpn": { "specified": [ "http/1.1", "h2" ] },
43-
},
44-
"secure": null,
45-
},
46-
"net": {
47-
"assignedPort": null,
48-
"assignedSslPort": 443,
49-
"public": false,
50-
}
51-
}),
52-
)]
53-
.into_iter()
54-
.collect();
55-
let onion = db["public"]["serverInfo"]["onionAddress"].clone();
56-
db["public"]["serverInfo"]["host"] = json!({
57-
"bindings": bindings,
58-
"onions": [onion],
59-
"domains": {},
60-
"hostnameInfo": {},
61-
});
62-
6334
Ok(())
6435
}
6536
fn down(self, _db: &mut Value) -> Result<(), Error> {

0 commit comments

Comments
 (0)