Transport: string default=null

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-18 19:44:17 +03:00
parent ee6d575d5d
commit ecca22c1f7
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
5 changed files with 11 additions and 12 deletions

View file

@ -23,9 +23,9 @@
* DASH and TYPE FIX REQUIRED
*/
class Singularity.Transport.GRPC : Transport, Json.Serializable {
public string service_name { get; set; default = "TunService"; }
public string idle_timeout { get; set; default = "15s"; }
public string ping_timeout { get; set; default = "15s"; }
public string service_name { get; set; default = null; }
public string idle_timeout { get; set; default = null; }
public string ping_timeout { get; set; default = null; }
public bool permit_without_stream { get; set; default = false; }
construct {

View file

@ -24,11 +24,11 @@
*/
class Singularity.Transport.Http : Transport, Json.Serializable {
public string[] host { get; set; default = new string[0]; }
public string path { get; set; default = ""; }
public string method { get; set; default = ""; }
public string path { get; set; default = null; }
public string method { get; set; default = null; }
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
public string idle_timeout { get; set; default = "15s"; }
public string ping_timeout { get; set; default = "15s"; }
public string idle_timeout { get; set; default = null; }
public string ping_timeout { get; set; default = null; }
construct {
type_name = "http";

View file

@ -23,8 +23,8 @@
* TYPE FIX REQUIRED
*/
class Singularity.Transport.HttpUpgrade : Transport, Json.Serializable {
public string host { get; set; default = ""; }
public string path { get; set; default = ""; }
public string host { get; set; default = null; }
public string path { get; set; default = null; }
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
construct {

View file

@ -6,4 +6,3 @@ transports_sources = [
'logic/transports/grpc.vala',
'logic/transports/http_upgrade.vala',
]
singularity_sources += transports_sources

View file

@ -23,10 +23,10 @@
* DASH and TYPE FIX REQUIRED
*/
class Singularity.Transport.WebSocket : Transport, Json.Serializable {
public string path { get; set; default = ""; }
public string path { get; set; default = null; }
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
public int64 max_early_data { get; set; default = 0; }
public string early_data_header_name { get; set; default = ""; }
public string early_data_header_name { get; set; default = null; }
construct {
type_name = "ws";