Wgctl::Models::Interface
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(name : String, config_path : String | Nil = nil, address : Array(String) = [] of String, listen_port : Int32 | Nil = nil, private_key : String | Nil = nil, peers : Array(Peer) = [] of Peer, raw_headers : Array(String) = [] of String, raw_properties : Hash(String, Array(String)) = Hash(String, Array(String)).new, server_endpoint : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
address
Sourceall_assigned_ips
Sourceconfig_path
Sourceeffective_address
Sourceeffective_listen_port
Sourceendpoint
Sourcelisten_port
Sourcename
Sourcepeers
SourceNever serialize private_key in status / json dump for security
Comments or instructions before or within [Interface]
raw_properties
Sourceruntime_listen_port
Sourceruntime_public_key
Source