You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
361 B

extern crate gempress;
use gempress::Gempress;
use std::path::PathBuf;
fn main() {
// Run make_cert.sh to generate a certificate
let config = gempress::Config::with_identity(PathBuf::from("identity.pfx"), "qqqq".into());
let app = Gempress::new(config);
app.listen(1965, || {
println!("Listening on port 1965");
}).unwrap();
}
}