mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
hyprspace: 0.13.1 -> 0.14.0 (#527217)
This commit is contained in:
@@ -6,6 +6,11 @@ import "encoding/json"
|
||||
import "fmt"
|
||||
|
||||
type Config struct {
|
||||
// Whether to enable filtering of private/link-local addresses from peer
|
||||
// discovery. When enabled, the node will not attempt to connect to RFC1918,
|
||||
// link-local, or loopback addresses advertised by other peers.
|
||||
FilterPrivateAddresses bool `json:"filterPrivateAddresses,omitempty"`
|
||||
|
||||
// List of addresses to listen on for libp2p traffic.
|
||||
ListenAddresses []string `json:"listenAddresses,omitempty"`
|
||||
|
||||
@@ -135,6 +140,9 @@ func (j *Config) UnmarshalJSON(value []byte) error {
|
||||
if err := json.Unmarshal(value, &plain); err != nil {
|
||||
return err
|
||||
}
|
||||
if v, ok := raw["filterPrivateAddresses"]; !ok || v == nil {
|
||||
plain.FilterPrivateAddresses = false
|
||||
}
|
||||
if v, ok := raw["listenAddresses"]; !ok || v == nil {
|
||||
plain.ListenAddresses = []string{
|
||||
"/ip4/0.0.0.0/tcp/8001",
|
||||
|
||||
@@ -9,18 +9,18 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "hyprspace";
|
||||
version = "0.13.1";
|
||||
version = "0.14.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hyprspace";
|
||||
repo = "hyprspace";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-AsOgnnYZRoB/t2XwrTMD8XIHoy/bl6bqUvIT5e02uNo=";
|
||||
hash = "sha256-d8sCs81Va/RQL8k+6GIMp9z0C0AmWEhvZSijRKyVBC0=";
|
||||
};
|
||||
|
||||
env.CGO_ENABLED = "0";
|
||||
|
||||
vendorHash = "sha256-m7asItMMFm/lHNl4nemvuMU0mn69kTrC1XK4rUCOor4=";
|
||||
vendorHash = "sha256-O604bzvz6QjDdM9hK4gya3vOjlki4ZaohY363mi3Of4=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
|
||||
Reference in New Issue
Block a user