mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add 'hostid' to server_info
* Add json::Value conversion from beast::String * Update rippled-example.cfg
This commit is contained in:
@@ -377,6 +377,18 @@ Value::Value ( const std::string& value )
|
||||
value_.string_ = valueAllocator ()->duplicateStringValue ( value.c_str (),
|
||||
(unsigned int)value.length () );
|
||||
|
||||
}
|
||||
Value::Value (beast::String const& beastString)
|
||||
: type_ ( stringValue )
|
||||
, allocated_ ( true )
|
||||
, comments_ ( 0 )
|
||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||
, itemIsUsed_ ( 0 )
|
||||
#endif
|
||||
{
|
||||
value_.string_ = valueAllocator ()->duplicateStringValue ( beastString.toStdString ().c_str (),
|
||||
(unsigned int)beastString.length () );
|
||||
|
||||
}
|
||||
|
||||
Value::Value ( const StaticString& value )
|
||||
|
||||
Reference in New Issue
Block a user