Skip to content

Commit f882f21

Browse files
committed
Release v2.0.0-beta6
1 parent 224bf4d commit f882f21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+55
-46
lines changed

include/husarnet/api_server/dashboard_api_proxy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/api_server/server.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once
@@ -42,6 +42,9 @@ class ApiServer {
4242
std::string errorString);
4343

4444
bool validateSecret(const httplib::Request& req, httplib::Response& res);
45+
void forwardRequestToDashboardApi(
46+
const httplib::Request& req,
47+
httplib::Response& res);
4548

4649
nlohmann::json getStandardReply();
4750

include/husarnet/compression_layer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/config_storage.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once
@@ -119,10 +119,13 @@ class ConfigStorage {
119119
void setUserSetting(UserSetting setting, InetAddress inet);
120120
void clearUserSetting(UserSetting setting);
121121

122+
// Env variable related methods
122123
bool isUserSettingOverriden(UserSetting setting) const;
123124
std::string getPersistentUserSetting(UserSetting setting) const;
124125
void persistUserSettingOverride(UserSetting setting);
125126

127+
bool isUserSettingNonDefault(UserSetting setting) const;
128+
126129
std::string getUserSetting(UserSetting setting) const;
127130
bool getUserSettingBool(UserSetting setting) const;
128131
int getUserSettingInt(UserSetting setting) const;

include/husarnet/device_id.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/fstring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/hooks_manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/husarnet_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once
@@ -17,7 +17,7 @@
1717
#include "sdkconfig.h"
1818
#endif
1919

20-
#define HUSARNET_VERSION "2.0.280"
20+
#define HUSARNET_VERSION "2.0.304"
2121
#define WEBSETUP_SERVER_PORT 5580
2222
#define WEBSETUP_CLIENT_PORT 4800
2323
#define BASESERVER_PORT 443

include/husarnet/husarnet_manager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once
@@ -135,6 +135,7 @@ class HusarnetManager {
135135
IpAddress getWebsetupAddress();
136136
std::vector<IpAddress> getBaseServerAddresses();
137137
std::vector<IpAddress> getDashboardApiAddresses();
138+
std::vector<IpAddress> getEbAddresses();
138139

139140
NgSocket* getNGSocket();
140141
SecurityLayer* getSecurityLayer();

include/husarnet/identity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ipaddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/layer_interfaces.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/licensing.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once
@@ -19,12 +19,14 @@ class License {
1919
IpAddress websetupAddress;
2020
std::vector<IpAddress> baseServerAddresses;
2121
std::vector<IpAddress> dashboardApiAddresses;
22+
std::vector<IpAddress> ebAddresses;
2223

2324
public:
2425
License(std::string dashboardHostname);
2526
std::string getDashboardFqdn();
2627
IpAddress getWebsetupAddress();
2728
std::vector<IpAddress> getBaseServerAddresses();
2829
std::vector<IpAddress> getDashboardApiAddresses();
30+
std::vector<IpAddress> getEbAddresses();
2931
static bool validateDashboard(std::string dashboardHostname);
3032
};

include/husarnet/logging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/multicast_layer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ngsocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ngsocket_crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ngsocket_messages.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/peer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/peer_container.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/peer_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/dummy_task_priorities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/esp32/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/esp32/tun.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once
@@ -18,7 +18,7 @@ class TunTap : public UpperLayer {
1818
private:
1919
void close();
2020
ip6_addr_t ipAddr;
21-
struct raw_pcb* pcb;
21+
struct netconn* conn;
2222

2323
public:
2424
QueueHandle_t tunTapMsgQueue;

include/husarnet/ports/esp32/user_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/fat/filesystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44

include/husarnet/ports/linux/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/linux/tun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/macos/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/macos/tun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/macos/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44

include/husarnet/ports/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/port_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/sockets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44

include/husarnet/ports/windows/networking.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/windows/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/ports/windows/tun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/security_layer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/string_view.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

include/husarnet/websetup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Husarnet sp. z o.o.
1+
// Copyright (c) 2025 Husarnet sp. z o.o.
22
// Authors: listed in project_root/README.md
33
// License: specified in project_root/LICENSE.txt
44
#pragma once

lib/libhusarnet.a

-22 KB
Binary file not shown.

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Husarnet ESP32",
3-
"version": "2.0.0-beta5",
3+
"version": "2.0.0-beta6",
44
"description": "Connect your devices using secure P2P network layer for robots and IoT. Look at docs.husarnet.com for information how to configure your project!",
55
"keywords": [
66
"communication",

0 commit comments

Comments
 (0)