mirror of
https://github.com/sogou/workflow.git
synced 2026-10-29 03:27:04 +08:00
fix dns message bug when name has trailing dot
This commit is contained in:
@@ -235,9 +235,11 @@ public:
|
||||
this->request_id = id;
|
||||
}
|
||||
|
||||
void set_request_name(const std::string& name)
|
||||
void set_request_name(std::string name)
|
||||
{
|
||||
this->request_name = name;
|
||||
while (name.size() > 1 && name.back() == '.')
|
||||
name.pop_back();
|
||||
this->request_name = std::move(name);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user