mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
use std::string instead of const char* in rmq struct
This commit is contained in:
parent
74478b24b0
commit
cc79ec6179
3 changed files with 11 additions and 9 deletions
|
@ -15,14 +15,15 @@
|
|||
#define ZT_CONTROLLER_RABBITMQ_HPP
|
||||
|
||||
#include "DB.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace ZeroTier
|
||||
{
|
||||
struct MQConfig {
|
||||
const char *host;
|
||||
std::string host;
|
||||
int port;
|
||||
const char *username;
|
||||
const char *password;
|
||||
std::string username;
|
||||
std::string password;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -32,7 +33,7 @@ struct MQConfig {
|
|||
|
||||
#include <amqp.h>
|
||||
#include <amqp_tcp_socket.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace ZeroTier
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue