@@ -4,62 +4,33 @@ use exver::{PreReleaseSegment, VersionRange};
4
4
use imbl_value:: json;
5
5
6
6
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 } ;
8
8
use crate :: prelude:: * ;
9
9
10
10
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(
12
12
[ 0 , 3 , 6 ] ,
13
- [ PreReleaseSegment :: String ( "alpha" . into( ) ) , 12 . into( ) ]
13
+ [ PreReleaseSegment :: String ( "alpha" . into( ) ) , 13 . into( ) ]
14
14
) ;
15
15
}
16
16
17
17
#[ derive( Clone , Copy , Debug , Default ) ]
18
18
pub struct Version ;
19
19
20
20
impl VersionT for Version {
21
- type Previous = v0_3_6_alpha_11 :: Version ;
21
+ type Previous = v0_3_6_alpha_12 :: Version ;
22
22
type PreUpRes = ( ) ;
23
23
24
24
async fn pre_up ( self ) -> Result < Self :: PreUpRes , Error > {
25
25
Ok ( ( ) )
26
26
}
27
27
fn semver ( self ) -> exver:: Version {
28
- V0_3_6_alpha_12 . clone ( )
28
+ V0_3_6_alpha_13 . clone ( )
29
29
}
30
30
fn compat ( self ) -> & ' static VersionRange {
31
31
& V0_3_0_COMPAT
32
32
}
33
33
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
-
63
34
Ok ( ( ) )
64
35
}
65
36
fn down ( self , _db : & mut Value ) -> Result < ( ) , Error > {
0 commit comments